Read a file
read_fileRead a file of the organization, such as a chart or report a run saved: text comes back as text, an image (PNG, JPEG, GIF, WebP) as an image you can see, and anything else (a .docx, .xlsx, .pdf) as an embedded resource with its contents in base64; the file's details follow. Files up to max_bytes (default 1 MiB, at most 5 MiB); a larger one is refused with its details, to download through the REST API (GET /v1/files/{id}) or the dashboard's Files page.
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": {
"id": "<id>"
},
"name": "read_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The file's id (or its name: the newest file with that name). | |
| max_bytes | No | The largest file to return (default 1 MiB). |