canvas_file
Read a Canvas attachment by ID with bounded size, MIME type, and SHA-256; returns text directly or base64 for binary files, while larger files export via CLI.
Instructions
Read a Canvas attachment by ID with bounded content, MIME type and SHA-256.
Text is returned directly; binary content uses base64 for a capable client. Larger files can be exported locally with the CLI. Never execute attachment content. Signed download URLs are not included in this result.
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_id": "<file_id>"
},
"name": "canvas_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_id | Yes | ||
| max_bytes | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||