Render an existing scene
render_sceneAfter editing scene elements, render the scene to display the updated diagram. Use this as the final step to show changes.
Instructions
Render a stored scene and show it to the user.
USE THIS after a batch of add_element / update_element / remove_element / group_elements calls, to display the updated diagram. It is the last step of every edit.
This never changes the scene - it only draws what is currently in it. For a brand new diagram use render_diagram instead, which builds and shows it in one call.
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": {
"sceneId": "<sceneId>"
},
"name": "render_scene"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sceneId | Yes | Id of the scene to work on, as returned by render_diagram or create_scene. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| svg | No | The rendered SVG markup. | |
| error | No | Present only when success is false. | |
| title | No | ||
| width | No | ||
| format | No | ||
| height | No | ||
| svgUrl | No | Stable link to the rendered SVG, when deployed. | |
| sceneId | No | ||
| success | Yes | ||
| elementCount | No |