Run My Tool
revit_run_toolRun saved C# code against a live Revit model, with optional dry runs that roll back changes and consent checks before commits.
Instructions
Run saved C#; review via revit_get_tool. First run and commits need consent; read/dry_run rolls back. Managed forms use input_files (even {}), output_dir and preview_id. Store needs ExecuteCode=confirm. Timeouts may follow commit; use revit_jobs for jobId. Uses a two-step AI app token handshake.
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": {
"name": "<name>",
"args": "<args>"
},
"name": "revit_run_tool"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | Yes | ||
| name | Yes | ||
| dry_run | No | ||
| document | No | ||
| output_dir | No | ||
| preview_id | No | ||
| process_id | No | ||
| input_files | No | ||
| transaction | No | auto | |
| confirm_token | No | ||
| timeout_seconds | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||