select_window
Box-select visible CAD entities within a rectangular window and summarize counts by type and layer, with optional type/layer filters and crossing or containment modes.
Instructions
Box-select visible objects and summarise what is inside (counts by type and layer).
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": {
"x0": "<x0>",
"y0": "<y0>",
"x1": "<x1>",
"y1": "<y1>"
},
"name": "select_window"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x0 | Yes | ||
| x1 | Yes | ||
| y0 | Yes | ||
| y1 | Yes | ||
| type | No | Only this entity type, e.g. Line, Circle, Text, Polyline, Insert | |
| layer | No | ||
| coords | No | 'px' = pixels of the last image, 'world' = drawing units | px |
| crossing | No | True: touching the box counts; False: must be fully inside |