sw_close
Closes a SolidWorks document and blocks closing when unsaved changes exist unless discard_changes is set to true.
Instructions
Close a document. Refuses if it has unsaved changes unless discard_changes=true (the user is asked).
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": "sw_close"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doc | No | Document title or path. Defaults to the active document. | |
| discard_changes | No |