Revit MCP Server

by ideook
MIT License

get_current_view_elements

Retrieve elements from the active Revit view, filtering by model or annotation categories. Control visibility of hidden elements and set a limit on the number of elements returned for precise 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: 69azq1d9rx