Read a Drive file
drive_readRead a Google Drive file as editable text—Docs to plain text, Sheets to CSV, Slides to plain text. For binary files, get a link instead of content.
Instructions
Read a file as text. Google Docs are exported to plain text, Sheets to CSV and Slides to plain text; ordinary text files are downloaded as they are. Binary files (PDF, images, archives) are refused with a link instead — this tool does not download them. Long content is truncated and says so.
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>",
"account": "<account>"
},
"name": "drive_read"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account | Yes | Configured account: the email address, or the alias given at setup. | |
| file_id | Yes | File id, as returned by drive_search. | |
| max_chars | No | Cut the content at this many characters. Default 60000. |