Documents & media
Produce files people keep: living documents, Word, PowerPoint and Excel files, images and QR codes.
| Tool | What it does |
|---|---|
write_canvas | Creates or revises a shared canvas document that the person sees update live and can edit in place; their edits are shown to the agent on its next turn. |
generate_document | Builds a Word (.docx), PowerPoint (.pptx) or Excel (.xlsx) file from a structured spec and returns it as a download. |
generate_image | Generates an image from a text prompt. |
qr_code | Makes a QR code (SVG) for a URL or short text, shown inline in chat. |
write_canvas
Creates or revises a shared canvas document that the person sees update live and can edit in place; their edits are shown to the agent on its next turn.
How an agent gets it. Added automatically on chat and automation runs.
format: "slides"makes each##heading a slide;documentis a flowing document.- Web images in the Markdown are fetched once and stored as
asset:links (PNG, JPEG, GIF or WebP; no SVG). - The Document Author is built around it.
Arguments
| Argument | Type | Required | Meaning |
|---|---|---|---|
title | string | yes | |
content | string | yes | |
format | one of document, slides |
generate_document
Builds a Word (.docx), PowerPoint (.pptx) or Excel (.xlsx) file from a structured spec and returns it as a download.
How an agent gets it. Declare it in the agent's tools: list.
templatenames a workspace document template,Trellarisfor the built-in deck, ornone. Omitted, the workspace's default applies.- For decks, a template's own sample slides are dropped unless
keep_template_contentis true. - Carried by the Assistant and Deep Research.
Arguments
| Argument | Type | Required | Meaning |
|---|---|---|---|
format | one of docx, pptx, xlsx | yes | |
filename | string | Output file name, e.g. report.docx. | |
template | string | Name of a workspace template to apply, or omit for none. | |
content | object | yes | The structured document spec. |
keep_template_content | boolean | pptx only: keep the template's own slides and append after them. Default false โ the template's sample slides are dropped and only the generated slides remain (its theme/layouts are always kept). |
generate_image
Generates an image from a text prompt. In chat it appears inline; while editing a document it returns the Markdown to place it there.
How an agent gets it. Declare it in the agent's tools: list.
- Sizes 1024ร1024, 1792ร1024 (wide) or 1024ร1792 (tall).
- Never a real company's logo or a real person's likeness. For data, use a chart.
Arguments
| Argument | Type | Required | Meaning |
|---|---|---|---|
prompt | string | yes | What the image should depict. |
alt | string | Short alt text / caption for the image (e.g. 'Team at work'). | |
size | one of 1024x1024, 1792x1024, 1024x1792 | Output dimensions. |
qr_code
Makes a QR code (SVG) for a URL or short text, shown inline in chat.
How an agent gets it. Declare it in the agent's tools: list.
Arguments
| Argument | Type | Required | Meaning |
|---|---|---|---|
data | string | yes | URL or text to encode. |