Sheet: Manage Xrefs
xref_manageManage AutoCAD external references: list, reload, bind, detach, or change a reference path, with live-only actions refused rather than faked in headless mode.
Instructions
One operation on one external reference.
list, detach and path work on both engines. reload and bind need
a live AutoCAD seat's xref manager: headlessly they are refused with
capability: "xref_live" rather than pretended, and the refusal says which
engine does them. Other refusals: an action outside the five, an unknown
xref name, a 'path' action with no new_path. On the live engine a listed
row's inserts and kind are both null — ActiveX's block interface
carries neither a per-xref insert count nor an overlay indicator, and this
server does not invent them. Headlessly both are measured: inserts
counts every insert in the drawing, model space and paper space alike, and
detach removes exactly those.
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": {
"action": "<action>"
},
"name": "xref_manage"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Xref name; ignored by 'list'. | |
| action | Yes | list | reload | bind | detach | path. | |
| new_path | No | Required by 'path': the reference's new location. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||