Tools

Documents & media

Produce files people keep: living documents, Word, PowerPoint and Excel files, images and QR codes.

ToolWhat it does
write_canvasCreates 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_documentBuilds a Word (.docx), PowerPoint (.pptx) or Excel (.xlsx) file from a structured spec and returns it as a download.
generate_imageGenerates an image from a text prompt.
qr_codeMakes 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.

Arguments

ArgumentTypeRequiredMeaning
titlestringyes
contentstringyes
formatone 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.

Arguments

ArgumentTypeRequiredMeaning
formatone of docx, pptx, xlsxyes
filenamestringOutput file name, e.g. report.docx.
templatestringName of a workspace template to apply, or omit for none.
contentobjectyesThe structured document spec.
keep_template_contentbooleanpptx 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.

Arguments

ArgumentTypeRequiredMeaning
promptstringyesWhat the image should depict.
altstringShort alt text / caption for the image (e.g. 'Team at work').
sizeone of 1024x1024, 1792x1024, 1024x1792Output 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

ArgumentTypeRequiredMeaning
datastringyesURL or text to encode.