Diagram Render
diagram_renderRender a saved diagram by ID to produce an image or file in SVG, PNG, JPEG, or PDF, using optional source and format overrides.
Instructions
Diagram Render. Render a previously saved diagram by ID. Public, no API key required. Supports ?format= and ?query= overrides.
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": {
"id": "<id>"
},
"name": "diagram_render"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The diagram ID returned in the X-Diagram-Render-URL header when saving a diagram. Format: cq-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx. | |
| query | No | Override the diagram source code (URL-encoded). | |
| share | No | Set share=true to persist the config and receive JSON instead of an image: { id, render_url, view_url, embed_url, expires_in }. Free plan: 3-day expiry with watermark. Paid plan: 6-month expiry, no branding. Default: false. | |
| fields | No | Comma-separated list of fields to keep in the response, with dot notation for nested fields (e.g. name,location.city). Does not change the credit cost. | |
| format | No | Override output format. Allowed values: svg, png, jpeg, pdf. Default: "svg". |