Read file content
read_file_contentRead Google Classroom attachments from Drive file IDs or links by converting Docs/Slides to text, Sheets to CSV, Office files to text, and returning images and PDFs in usable formats.
Instructions
Read the contents of a Classroom attachment: Google Docs/Slides as text, Sheets as CSV, .docx/.pptx/.xlsx as extracted text, plain-text files as text, images as images, PDFs as an embedded PDF.
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": "<file>"
},
"name": "read_file_content"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Drive file id or any drive.google.com / docs.google.com link | |
| max_chars | No | Truncate text output (default 100000) | |
| export_format | No | Override export format for Google-native files (txt, csv, html, md, pdf…) |