Get Selection
get_selectionUse this when you need to read the human/agent selection in a local Studio session. Returns one clicked face or edge (or null), with current-generation mesh-local shapeIndex/kind/id and creating featureId. During a rebuild selection is null with “selection pending rebuild” until Studio uniquely verifies the face; ambiguous or deleted faces are cleared. Inspect the current shape before authoring a fillet. Requires a running local Studio opened on the same script; hosted sessions are not supported.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session | Yes | Studio sessionToken from GET /__kernelcad/session?script=<path>. Use the same script as the viewer. | |
| studio_url | Yes | Local Studio HTTP origin, e.g. http://localhost:5173. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||