Query Drawing Entities
query_drawing_entitiesRetrieve drawing entities filtered by type and layer, returning coordinates, dimensions, and properties for CAD analysis.
Instructions
Query entities in the drawing with optional filtering by type (e.g. 'LINE', 'CIRCLE', 'LWPOLYLINE', 'TEXT', 'INSERT') and/or layer. Returns coordinates, dimensions, layers, and properties for each matched entity.
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": {
"file_path": "<file_path>"
},
"name": "query_drawing_entities"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| layer | No | ||
| limit | No | ||
| offset | No | ||
| file_path | Yes | ||
| entity_type | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||