Revit MCP Server

by ideook
MIT License

operate_element

Perform actions on Revit elements, including select, hide, set color, adjust transparency, delete, isolate, or highlight, directly within the Revit MCP Server.

Instructions

Operate on Revit elements by performing actions such as select, selectionBox, setColor, setTransparency, delete, hide, etc.

Input Schema

NameRequiredDescriptionDefault
dataYesParameters for operating on Revit elements with specific actions

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "data": { "additionalProperties": false, "description": "Parameters for operating on Revit elements with specific actions", "properties": { "action": { "description": "The operation to perform on elements. Valid values: Select, SelectionBox, SetColor, SetTransparency, Delete, Hide, TempHide, Isolate, Unhide, ResetIsolate, Highlight. Select enables direct element selection in the active view. SelectionBox allows selection of elements by drawing a rectangular window in the view. SetColor changes the color of elements (requires elementColor parameter). SetTransparency adjusts element transparency (requires transparencyValue parameter). Highlight is a convenience operation that sets elements to red color (internally calls SetColor with red). Delete permanently removes elements from the project. Hide makes elements invisible in the current view until explicitly shown. TempHide temporarily hides elements in the current view. Isolate displays only selected elements while hiding all others. Unhide reveals previously hidden elements. ResetIsolate restores normal visibility to the view.", "type": "string" }, "colorValue": { "default": [ 255, 0, 0 ], "description": "RGB color values for SetColor action. Default is red [255,0,0].", "items": { "type": "number" }, "type": "array" }, "elementIds": { "description": "Array of Revit element IDs to perform the specified action on", "items": { "description": "A valid Revit element ID to operate on", "type": "number" }, "type": "array" }, "transparencyValue": { "default": 50, "description": "Transparency value (0-100) for SetTransparency action. Higher values increase transparency.", "type": "number" } }, "required": [ "elementIds", "action" ], "type": "object" } }, "required": [ "data" ], "type": "object" }
ID: 69azq1d9rx