Revit MCP

by revit-mcp
MIT License
60

get_current_view_elements

Retrieve elements from the active Revit view by filtering model or annotation categories. Optionally include hidden elements or limit results for efficient data extraction.

Instructions

Get elements from the current active view in Revit. You can filter by model categories (like Walls, Floors) or annotation categories (like Dimensions, Text). Use includeHidden to show/hide invisible elements and limit to control the number of returned elements.

Input Schema

NameRequiredDescriptionDefault
annotationCategoryListNoList of Revit annotation category names (e.g., 'OST_Dimensions', 'OST_WallTags', 'OST_TextNotes')
includeHiddenNoWhether to include hidden elements in the results
limitNoMaximum number of elements to return
modelCategoryListNoList of Revit model category names (e.g., 'OST_Walls', 'OST_Doors', 'OST_Floors')

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "annotationCategoryList": { "description": "List of Revit annotation category names (e.g., 'OST_Dimensions', 'OST_WallTags', 'OST_TextNotes')", "items": { "type": "string" }, "type": "array" }, "includeHidden": { "description": "Whether to include hidden elements in the results", "type": "boolean" }, "limit": { "description": "Maximum number of elements to return", "type": "number" }, "modelCategoryList": { "description": "List of Revit model category names (e.g., 'OST_Walls', 'OST_Doors', 'OST_Floors')", "items": { "type": "string" }, "type": "array" } }, "type": "object" }
ID: npu475c7cd