Get the user’s selection
get_selectionReturns what the person you act for has selected in their open editor tabs for this diagram: selection (node / edge ids), items (the first 20 selected records: kind, the node type or the edge ends, and the label) and tabs (each tab's selection and visible viewport). Empty when the diagram is not open.
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": {
"diagramId": "<diagramId>"
},
"name": "get_selection"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| diagramId | Yes | Diagram id (from list_diagrams or create_diagram). |