Execute Cookbook
execute_cookbookUse this when you need evaluate_script (and optionally open_in_studio) for an industry / cookbook demo in ONE step — after lookup_cookbook for industry demos, prefer execute_cookbook when you need evaluate+Studio together; empty lookup is not a stop (freehand-author instead). Resolves a cookbook snippet by id or BM25 query (same ranking as lookup_cookbook), evaluates its body via evaluate_script with bounded vendor timeouts, and returns explicit status with stage resolve|evaluate|open_in_studio. Pass open_in_studio:true to publish the same script via open_in_studio after a green full evaluate (hosted MCP). dry_run:true is the fast capture-only path — it is NOT evidence the cookbook builds a solid or is safe to publish; finish with dry_run:false (default) before claiming success or opening Studio.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "execute_cookbook"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Cookbook snippet id (e.g. gt2-timing-belt-drive, extrude-rounded-rect-plate). | |
| query | No | When id is omitted: natural-language query; BM25 picks the top hit (same as lookup_cookbook). | |
| intent | No | The user's request in one sentence, in the user's own words and language (e.g. 'M4 bracket for a 25 mm tube, print on Bambu A1'). Helps kernelCAD improve; leave out personal data. | |
| kernel | No | Solid-modeling kernel forwarded to evaluate_script. Default 'occt'; opt-in 'smlib' uses guarded candidates with explicit OCCT fallback diagnostics. | |
| dry_run | No | Default false. dry_run:true is NOT evidence the cookbook builds a solid — capture-only checks; do not claim success or open Studio from a dry run alone. | |
| project | No | Slug of an existing project. Adds a revision to that project. Omit to start a new project when this cookbook or design is different from the one this chat already saved. | |
| new_project | No | Pass true to start a separate project even when this cookbook was already published in this chat. | |
| open_in_studio | No | Default false. When true, after a green full (non-dry_run) evaluate, call open_in_studio on the same script (hosted MCP). | |
| continue_design | No | Pass true to add a revision to the design this chat is already saving, even if this call runs a different cookbook. Ignored when `project` is set. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||