object_count
Count objects in the current drawing space with optional entity-type and layer filters. Use this read-only query to check entity totals before fetching full object lists.
Instructions
Count objects in the backend's current supported space with optional type and layer filters; no document geometry is modified.
Side-effects: None. Read-only entity count query. Disambiguation: Lightweight count check before fetching full object lists.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "object_count"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type_filter | No | Optional entity type filter (e.g. 'LINE', 'CIRCLE') | |
| layer_filter | No | Optional layer name filter |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |