execute_code
Sends C# code to a running Revit instance for execution once the designer confirms the task spec. Returns the execution result or error.
Instructions
Send C# code to Revit for execution over the local TCP socket. Refused unless spec_confirmed=true (the designer confirmed the task spec). Returns execution result or error message.
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_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| parameters | No | ||
| spec_confirmed | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |