Inspect a scene
get_sceneRetrieve the current structured scene with element types, properties, and computed positions to enable accurate edits and relative positioning.
Instructions
Return the current structured description of a scene: every element with its id, type and properties, plus the position and size each one actually ended up with.
USE THIS BEFORE EDITING whenever you are not sure of the current state - which ids exist, what a node is called, where it sits, what is already connected. Reading first is what makes small edits possible instead of redrawing the diagram from scratch.
The layout field gives the computed box (x, y, width, height) of every element,
including ones you never gave coordinates to. Those are the numbers to use when the user
asks for something relative: "a bit to the right", "above the backend", "same width as X".
This does not display anything.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sceneId | Yes | Id of the scene to work on, as returned by render_diagram or create_scene. | |
| elementId | No | Return just this one element instead of the whole scene. | |
| includeLayout | No | Include the computed box of every element. Default true. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ids | No | Every element id in the scene. | |
| error | No | Present only when success is false. | |
| scene | No | The full scene, ready to be edited or re-sent. | |
| layout | No | Map of element id to { x, y, width, height }. | |
| element | No | ||
| history | No | The last few mutations applied to this scene. | |
| sceneId | No | ||
| success | Yes |