Read a file
read_fileReads a Drive file's text (extracted from PDFs, Office files and Coline's own formats), a window at a time: pass nextOffset as offset to keep reading, or a query for the most relevant excerpt.
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": {
"workspace": "<workspace>",
"fileId": "<fileId>"
},
"name": "read_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | No | ||
| fileId | Yes | File id from list_drive_files, search or fetch. | |
| offset | No | ||
| maxChars | No | ||
| workspace | Yes | Workspace slug from workspaces.list, e.g. "acme". |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | ||
| note | Yes | ||
| content | Yes |