Save project
save_projectWrites a new part to parcad's project folder, where the user can open it; open_project then puts it on their screen. For a part already saved, edit_part changes the lines it names, rebuilds and saves in one call, without the whole script being sent again. A script that does not build is saved regardless, as a broken file; evaluate_part builds a script without saving it. Saving replaces an existing project at the same path; a new one is created as a '.parcad' folder, and a path like 'Mounts/bracket' files it under a folder, creating the folder if needed. The reply says whether the script built (the error if not) and the snapshot of the version it replaced, which list_snapshots and restore_snapshot can bring back. A part that builds and fails its print_check (material under 0.3 mm, where nothing prints) or one of its own checks is not saved: the refusal names the finding or the check and its measurement. allow_failing carries the user's words accepting that it fails, for keeping such a part, and the reply keeps it beside the verdicts it opens with.
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": {
"name": "<name>",
"script": "<script>"
},
"name": "save_project"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The project path to write: slash-separated folder names and no extension, such as `bracket` or `Mounts/bracket`. Folders are created as needed. An existing project at that path is replaced. | |
| script | Yes | The DSL source to save. | |
| allow_failing | No | The user's words accepting that the part fails a check or the print check, such as "save it, I'll fix the clearance later". Fixed dimensions in a brief, or the request to save, accept no failure. Without it a failing verdict refuses the save, naming it and what was measured; with it the reason is kept in the reply. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| path | Yes | ||
| brief | No | ||
| built | Yes | ||
| error | No | ||
| checks | No | ||
| snapshot | No | ||
| print_check | No | ||
| allow_failing | No |