Read a file's contents from Drive
read_gdrive_fileOpen one file and return what is in it. Google Docs and Slides, and Word documents (.docx), come back as text; text, CSV, JSON, HTML and code files come back as themselves; images come back as pictures the assistant can look at (a large photo, or a HEIC or TIFF, is scaled down to a JPEG; images up to 25 MB); a PDF file comes back whole as a document (an embedded application/pdf resource) for the assistant to read, up to 10 MB. Spreadsheets are refused in favour of read_google_sheet_range. Get the id from list_gdrive_items or search_gdrive_items.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"mailbox": "<mailbox>",
"itemId": "<itemId>"
},
"name": "read_gdrive_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| itemId | Yes | ||
| mailbox | Yes | Email address of the connected Gmail/Google Workspace mailbox to act on. Call list_authorized_mailboxes to see available options. |