xref repair
auto_xref_repairRepairs unresolved AutoCAD external references by re-pointing them to files with matching basenames, reports missing or ambiguous matches, and previews changes with dry-run mode.
Instructions
Re-point unresolved external references at a file with the same basename.
Reports every reference: one whose file is present is resolved; one with
no candidate is not_found; one with several is ambiguous (never
picked); the rest are repaired. The drawing's own folder is searched first,
then search_roots. Run with dry_run (the default) to see the plan.
A COM busy failure -- measured right after the seat starts -- is retried
up to attempts times, clearing any known dialog between tries; every other
failure is raised as it is.
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": "auto_xref_repair"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reload | No | ||
| dry_run | No | ||
| attempts | No | ||
| max_files | No | ||
| search_roots | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||