Read Item Files
item.read_filesRead the text of the files on one row: uploads in its File List fields, and Google Drive files the user linked themselves. Reads up to 5 files (10 MB each) in field and cell order until the text budget is spent; more counts the rest — pass attribute to read one field, or fileName to read one file. PDF, DOCX, XLSX, PPTX, CSV, text, and Google Docs, Sheets and Slides are read. A PNG, JPEG, WebP or GIF upload of up to 3.75 MB is shown to you as an image after the result, when your model can read images: describe only what it plainly shows. An audio upload is listed under unreadable to transcribe with audio.transcribe. A Drive file another member linked, an image from Google Drive, or a file that cannot be read is listed under unreadable with why (and the Drive link): tell the user, and never guess what it contains.
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": {
"sheetId": "<sheetId>",
"itemId": "<itemId>"
},
"name": "item.read_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| itemId | Yes | The row's id | |
| sheetId | Yes | ||
| fileName | No | Read only the file with this name, as the row lists it; omit to read every file | |
| attribute | No | Read only this File List field (its name or code); omit to read every File List field |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| item | Yes | ||
| more | Yes | Files not read: past the first 5, or after the text budget ran out | |
| note | No | ||
| files | Yes | ||
| unreadable | Yes | Files that could not be read, with why |