ai_element_filter
Filter Revit elements by category, type, visibility, or spatial bounds to find specific model components and combine filters for precise results.
Instructions
Filter and find Revit elements by category, type, visibility, and spatial bounds.
A powerful query tool for finding specific elements in the model. Combine filters for precise results — e.g., find all exterior walls on Level 1 visible in the current view.
Args: category: BuiltInCategory name, e.g. "OST_Walls", "OST_Doors" (optional) type_name: Filter by family type name or partial match (optional) visible_in_view: Only include elements visible in the active view (optional) bounding_box_min: Spatial filter min corner {"x", "y", "z"} in mm (optional) bounding_box_max: Spatial filter max corner {"x", "y", "z"} in mm (optional) max_elements: Maximum results to return (defaults to 50) ctx: MCP context for logging
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": "ai_element_filter"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| category | No | ||
| type_name | No | ||
| max_elements | No | ||
| visible_in_view | No | ||
| bounding_box_max | No | ||
| bounding_box_min | No |