Activate Document
document_activateSwitches the active AutoCAD drawing by name or full path, reporting the previous document; ambiguous or unknown names return candidates or open documents.
Instructions
Make one open document the active one; reports previous.
Matches the full path first, then the file name; an ambiguous name is
refused with the candidates, an unknown one with the list of open
documents. Headless, a document quarantined after an abandoned call cannot
be switched away from — drawing_new, drawing_open or closing it are
the ways out. Pack: settings · lean: no.
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_or_path": "<name_or_path>"
},
"name": "document_activate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name_or_path | Yes | A name from document_list (`gear.dxf`, `untitled-2`) or the full path |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||