model_session
Manage model session actions: undo or redo edits, load examples or files, save and restore versions, share a live-editing link, and inspect collaborators.
Instructions
Model-level actions: undo / redo (steps), new (name), demo (load the bracket example), share (share this model for live editing: returns the link others open — changes merge, clashes are refused, never overwritten), room (who is in the shared model, what each is selecting or working on, recent changes), example (no id: list the bundled examples; id: load one, e.g. "pump-housing" — a flanged pump housing with spline gussets, wrapped text, modelled threads and a screw-jointed cap), load (a .sf3d.json file path or a doc object), select (id, highlights it for the user), say (short message shown to the user), save_version (name), versions (list), restore_version (id or name — undoable).
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": {
"action": "<action>"
},
"name": "model_session"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ||
| doc | No | ||
| name | No | ||
| path | No | ||
| text | No | ||
| steps | No | ||
| action | Yes | ||
| seconds | No |