Get selection
get_selectionRetrieve selected diagram cells—IDs, labels, edge endpoints, shape position/size, and page—so you can apply edits to exactly what the user selected.
Instructions
Return the cells the user has selected in the preview: their ids and labels, for edges the source and target ids, for shapes the position and size, and the page they are on. Call this when the user refers to what they selected ("this box", "these arrows", "the selected shapes"), then act on the ids with edit_diagram. Says when nothing is selected. Needs the preview tab to be open.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||