drive_read_file_content
Extract text content from a Google Drive file into the current conversation. Reads Docs, Sheets, Slides, and text files; binary files require a separate download method.
Instructions
Read the text content of a Drive file directly into the conversation.
Google Docs export as plain text, Google Sheets as CSV, Google Slides as plain text. Other text-based files (txt, md, csv, json, code files) are read directly. Binary files (images, PDFs, etc.) are not supported here — use drive_download_file to save them locally instead.
Returns: str: The file's text content (truncated to max_chars), or an error message explaining why the file couldn't be read as text.
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": {
"params": "<params>"
},
"name": "drive_read_file_content"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |