read_file_content
Read one Drive file's TEXT content by id. Google-native docs (Docs/Sheets/Slides) are exported as text (default text/plain, spreadsheets text/csv — override with export_mime_type); other files are read as UTF-8 text directly (garbles binary formats like images/PDFs — use download_file_content for those). Content is capped (large files are truncated, truncated: true). Needs the Drive CONTENT scope (drive.readonly) — accounts without it get a reconnect hint. Pass account when more than one content-capable account is connected.
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": "read_file_content"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account | No | Account label the file belongs to. Required when several content-capable (drive.readonly) accounts are connected. | |
| file_id | Yes | Drive file id (from search_drive_files or get_file_metadata). | |
| export_mime_type | No | Google-native docs only: override the export MIME (default text/plain; spreadsheets default text/csv). |