get_file_text
Retrieve a Canvas file's text content by decoding its body as UTF-8, limited to a specified byte size. Works best with plaintext, markdown, code, and HTML.
Instructions
Download a Canvas file and return up to max_bytes of its body decoded as UTF-8 text. Best for plaintext/markdown/code/HTML; binary formats (PDF, DOCX) return raw bytes — extract text upstream.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_id | Yes | ||
| max_bytes | No |