Get user selection
selection_getRetrieves the object, face, edge, or feature currently selected in KOMPAS-3D so you can resolve ambiguous selectors after asking the user to click the target.
Instructions
What the user has currently selected in KOMPAS (faces/edges as topo handles, features as obj handles). Use this when a selector is ambiguous: ask the user to click the object, then call this.
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": {
"doc": "<doc>"
},
"name": "selection_get"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doc | Yes | Document handle from doc_list/doc_open, e.g. 'doc:12001:0a1b2c3d' |