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 openInStudio:true to publish the same script via open_in_studio after a green full evaluate (hosted MCP). dryRun:true is the fast capture-only path — it is NOT evidence the cookbook builds a solid or is safe to publish; finish with dryRun:false (default) before claiming success or opening Studio.
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). | |
| dryRun | No | Default false. dryRun:true is NOT evidence the cookbook builds a solid — capture-only checks; do not claim success or open Studio from a dry run alone. | |
| 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. | |
| 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. | |
| openInStudio | No | Default false. When true, after a green full (non-dryRun) 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 | |||