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.
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": {
"format": "<format>",
"spec": "<spec>"
},
"name": "render_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| spec | Yes | The document spec matching the format's schema. | |
| format | Yes | xlsx | pptx | docx |