Render one diagram
render_figureRender an in-article diagram as a crisp 2x PNG by selecting a template and filling its slots.
Instructions
Render a single in-article diagram to a PNG. Provide the template name and its slots (see list_templates for each template's slot schema). Returns the file path. Renders at 2x for crisp output.
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": {
"template": "<template>",
"slots": "<slots>"
},
"name": "render_figure"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| template | Yes | ||
| slots | Yes | ||
| out_path | No | Optional filename or sub-path written INTO the output dir (confined to it). |