selection_get
Retrieves the active document’s current selection, including selected items, context, counts, and summaries, so agents can inspect what is selected before editing.
Instructions
Returns what is selected in the active document: what the developer clicked in the window (when this server is bridged to one) and what agents selected (select.set, select.query with then), as items {kind, name, feature} with their context (body, origin, surface or curve with its measure, drivers: the parameter or sketch constraint that sets it with the edit to make, copyOf: the pattern instance), count, summary ("3 bodies, 2 faces"), dropped (what no longer exists) and hidden (what a suppressed or rolled-back feature hides for now). Returns {"document": null} when no document is open. The same as the resource craft3d://selection.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "selection_get"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||