Render infographic
render_infographicRender GraphMake Script into an infographic image (PNG or SVG). GraphMake Script is a short line-based format, e.g. title "...", kpi "Label" "Value" icon=users, bar_chart "T" { Jan: 42\n Feb: 68 }, timeline { 2024: "Event" "detail" }, style bold and row { ... } for side-by-side blocks; the full syntax is in the GraphMake Script reference. Returns the image and a link that opens it in the GraphMake editor for hand-editing and export. Script errors come back with the line number.
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": {
"script": "<script>"
},
"name": "render_infographic"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| width | No | Optional canvas width in px (max 4000). | |
| format | No | png (default) returns an image; svg returns the SVG markup as text, ready to save to a file. | |
| height | No | Optional canvas height in px (max 8000). | |
| script | Yes | The GraphMake Script to render. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bytes | Yes | Size of the PNG or SVG in bytes. The image itself is in the content. | |
| format | Yes | ||
| editorUrl | Yes | Opens the result in the free GraphMake editor, where it can be restyled and exported as PNG, SVG or PDF. |