drive_read_file
Read a Google Drive file's content by account and file ID; export Docs, Sheets, and Slides as text and return metadata for binary or oversized files.
Instructions
Read a Drive file's content (Google Docs/Sheets/Slides are exported to text). Binary or oversized files return metadata only.
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": {
"account": "<account>",
"file_id": "<file_id>"
},
"name": "drive_read_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account | Yes | Account email (must be authorized). | |
| file_id | Yes | Drive file id (from drive_search / drive_list_recent). |