A release about reading long content without flooding the model's context: Drive file content and Gmail message bodies can now be paged through in bounded chunks, and Sheets reads come back as compact tab-separated rows labelled with their real sheet row numbers. Calendar's detailed reads show reminders and visibility, Drive can download Google Drawings, and Authlib moves to 1.9.1.
Heads up:
get_drive_file_contentnow returns at most 40,000 characters per call and tells you theoffsetto continue from. SetWORKSPACE_MCP_MAX_CONTENT_CHARS=0to restore whole-file reads by default, or passfull_content=Trueper call.read_sheet_valuesoutput also changes shape (tab-separated cells, rows numbered by their sheet row instead of from 1), so anything parsing the oldRow 1: [...]lines needs updating.
New
- gdrive:
get_drive_file_contentpages long text byoffset, capped by the newWORKSPACE_MCP_MAX_CONTENT_CHARS(default 40,000), withfull_content=Trueto opt out and fetched text kept in a 10 minute cache (sized byWORKSPACE_MCP_PAGED_CONTENT_CACHE_BYTES, default 32 MiB) so follow-up pages skip the re-download (#1322) - feat(drive): page long get_drive_file_content text by offset by @georgebashi in #1322 - gmail:
get_gmail_message_contenttakespage_offset,page_size(up to 20,000 characters) andexpected_sha256, so MCP-only clients can read a long body in checksummed pages by followingnext_offsetuntilcomplete(#1323) - Add bounded Gmail body pagination to the existing read tool by @yavzius in #1323 - gsheets:
read_sheet_valuesreturns tab-separated rows numbered with the sheet's own row numbers, cutting 14 to 21% of the tokens per read and stopping writes back to the wrong "Row 1" (#1321) - feat(sheets): tab-separated read_sheet_values rows with sheet row numbers by @georgebashi in #1321
Fixes
- gcalendar:
get_events(detailed=True)now shows custom reminders, non-default visibility andtransparentevents, so settings written bymanage_eventcan be confirmed (#1327) - fix(calendar): show reminders, visibility and transparency in detailed get_events by @jan-bezdek in #1327 - gdrive:
get_drive_file_download_urlexports Google Drawings as PNG by default, or PDF, JPEG or SVG viaexport_format, instead of failing (#1315) - Export Google Drawings in get_drive_file_download_url by @kolmanv in #1315
Dependencies
- core: Authlib raised to 1.9.1 and dnspython pinned to 2.9.0 or later to clear open security alerts (#1317) - dependabot auto by @taylorwilsdon in #1317
New Contributors
- @yavzius made their first contribution in #1323
- @jan-bezdek made their first contribution in #1327
- @kolmanv made their first contribution in #1315
Full Changelog: v2.2.1...v2.3.0