Create document
create_documentCreate a new empty FreeCAD document in the controlled workspace, validating the document ID as a safe filename and saving it atomically for later geometry additions.
Instructions
Create a new empty FreeCAD document and save it atomically to the controlled workspace. The document_id is validated to be a safe filename (letters, digits, '.', '_', '-', max 64 chars). The document is stored under <workspace>/<document_id>.fcstd and its metadata revision is set to 1. Use create_box or create_cylinder to add geometry.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| objects | Yes | List of objects with basic info. | |
| all_valid | No | True if validate_document reports all OK. | |
| document_id | Yes | Validated document identifier. |