Render a document
render_documentConverts a structured JSON spec into an Office file (xlsx, pptx, docx) and returns it as base64. Enables agents to produce openable documents from authored specs.
Instructions
Render a structured spec into real Office bytes (xlsx/pptx/docx). Returns the file as base64. This is the primary authoring path: an agent writes a spec, this produces the openable file.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| spec | Yes | The document spec matching the format's schema. | |
| format | Yes | xlsx | pptx | docx |