sheet discover
auto_sheet_discoverLists drawing-layout sheet pairs under a root folder by opening each DWG, applying include/exclude globs, and skipping empty layouts.
Instructions
List the (dwg, layout) sheets under root, instead of listing them by hand.
Every drawing is opened to read its layouts, so this is a seat job, not a
file scan; Model is never a sheet and a layout with no paper (AutoCAD's
spare tabs plot on 0x0) is left out unless exclude_empty=false.
include / exclude are fnmatch globs against each drawing's path
relative to root ("01. Shopdrawing/*.dwg"); an excluded drawing is
named in skipped, and one that will not open in issues. Rows are
sorted by drawing then layout, so two calls on one tree agree.
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": {
"root": "<root>"
},
"name": "auto_sheet_discover"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| root | Yes | ||
| exclude | No | ||
| include | No | ||
| max_drawings | No | ||
| exclude_empty | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||