Save File
save_fileSaves the active SolidWorks part, assembly, or drawing to its current path or a new path in native format, so changes are kept and optional overwrite is controlled.
Instructions
Save the active part, assembly or drawing, to its own path or to a new path in its own format.
Use it after changes you want to keep. A new file_path is checked before
SolidWorks is asked: its folder must exist and be writable, it must end in
the document's extension (.sldprt, .sldasm, .slddrw), and a file already there
is kept unless overwrite is on. To write another format, use save_as or an
export_* tool; to copy an assembly with its parts, pack_and_go_assembly.
Needs: an open, active document, already saved once unless you give a path.
Changes: writes the file. Returns: file_path (when given) and data from
the save.
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": {
"input_data": "<input_data>"
},
"name": "save_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input_data | Yes | The save. Nothing is required: give `file_path` to save to a new path, or omit it to save in place; `overwrite` is off. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||