session_start
Initiate a modeling session to log CAD mutations as transactional steps, enabling rollback for trial-and-error design.
Instructions
Start a modeling session bound to a document.
While a session is active, every successful cad() mutation on the session's
document is recorded as a step backed by a FreeCAD transaction, enabling
session_rollback for trial-and-error modeling. execute_code steps are
recorded as non-atomic (rollback past them is blocked unless forced).
Args:
name: Optional human-readable session name.
create_document: Create the document first if it does not exist.
Returns:
Session info including session_id.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| doc_name | Yes | ||
| create_document | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |