save_document
Saves the active SolidWorks part or assembly to a specified path or overwrites its file, then verifies the file was written.
Instructions
Save the current part (.sldprt) or assembly (.sldasm) to path, or over its own file without one.
Saves silently and checks the file was really written. Drawings: drawing_file(action='save').
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": "save_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No |