get_revit_session
Finds the running Revit session and returns its version, workspace root, and installed project, family, and library template paths so you can reference real paths instead of guessing.
Instructions
Call this first. Finds the running Revit (processId is optional when only one Revit has Drive It loaded) and returns its version, the workspace root where Drive It saves and reads files without asking the user (null until the user picks one in the Drive-It window; ask them to), and Revit's installed project templates, family template folders, and library folders. Use these real paths instead of guessing file names.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_revit_session"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| processId | No | Windows process ID of Revit.exe; omit it to use the only running Revit |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| build | Yes | ||
| content | Yes | ||
| version | Yes | ||
| processId | Yes | ||
| workspaceRoot | Yes | ||
| connectionIdentity | Yes |