Save Document
save_documentSaves the active FreeCAD document to a .FCStd path and, by default, hides consumed producer-input objects to prevent double-rendered intermediates on reopen. Optionally embeds provenance.
Instructions
Save the active document to the given .FCStd path.
visibility_hygiene (default True): before saving, hide any object that has been consumed as a producer-input (the Base/Tool of a Cut, the BaseFeature of a Body, every feature inside a Body's Group, etc.). Without this the re-opened doc double-renders intermediates on top of the final shape — a failure mode that looks identical to broken geometry. Pass False to keep explicit set_visibility overrides intact. attach_provenance: embed this document's journal_export record (PRIVACY.md).
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": {
"path": "<path>"
},
"name": "save_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| workspace | No | Run this call in this named workspace | |
| attach_provenance | No | ||
| visibility_hygiene | No |