execute_revit_code
Runs IronPython code inside Revit after user review to inspect or modify BIM models, access files, and call network services.
Instructions
Executes supplied IronPython code in Revit with the Windows user's permissions after review in Revit; code can access model data, files and network services.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"code": "<code>"
},
"name": "execute_revit_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| description | No | Code execution |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |