swdraw_build_drawing
Build a SolidWorks drawing from a YAML spec, including views, dimensions, GD&T, title block, and PDF/PNG export, with self-checks for failed steps.
Instructions
Build the ACTIVE SolidWorks drawing from a spec: scale, clear, layout, sections, details, self-checked
dimensions, GD&T, leader notes, notes block, title block, fonts, PDF/PNG export. Does not save.
spec_path must be absolute. steps runs a subset (e.g. ["clear", "dimensions", "gdt", "export"]).
Look at result.check and the PNG afterwards.
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": {
"spec_path": "<spec_path>"
},
"name": "swdraw_build_drawing"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| steps | No | ||
| strict | No | ||
| spec_path | Yes | ||
| title_block | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |