drive_read_file
Extracts readable text from a Google Drive file, converting Docs, Sheets, and Slides to Office formats and retrieving it temporarily so agents can process the content.
Instructions
Extract the text of a Drive file: {filename, kind, text}. Google Docs, Sheets and Slides are exported to their Office format first, so they read like any attachment. The file is fetched to a temporary path and deleted straight after. Masked like read_attachment when the user chose to mask what agents read for the active account. Requires a connected Google account.
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": {
"file_id": "<file_id>"
},
"name": "drive_read_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_id | Yes | File id from drive_list_files. |