Select by Polygon
selection_polygonSelect entities inside or touching a polygon boundary, with optional layer and DXF type filters.
Instructions
Window or crossing selection against a polygon rather than a rectangle.
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": {
"points": "<points>"
},
"name": "selection_polygon"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | window = wholly inside only; crossing = touching. | window |
| layer | No | Restrict to a layer. Empty means any. | |
| points | Yes | Polygon vertices as [[x, y], ...]; at least 3. | |
| entity_type | No | Restrict to a DXF type. Empty means any. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||