link_file
Link or import DWG, DXF, DGN, or RVT files into a Revit model, keeping a live connection or embedding a copy, with optional mm offset placement.
Instructions
Link or import an external file into the Revit model.
Supports DWG, DXF, DGN (CAD files) and RVT (Revit links). Linked files maintain a live connection; imported files are embedded.
Args: file_path: Path to the file (DWG, DXF, DGN, or RVT) mode: "link" (default, maintains connection) or "import" (embeds copy) position: Optional placement offset {"x", "y", "z"} in mm ctx: MCP context for logging
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": {
"file_path": "<file_path>"
},
"name": "link_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | link | |
| position | No | ||
| file_path | Yes |