Open in Studio
open_in_studioUse this when the user wants to SEE or share the model — it persists the current kernelCAD model and returns a one-click link that opens it in the kernelCAD Studio web app, where the user can view and share it. Pass the full .kcad source you have been building as code. code is OPTIONAL: if you just called evaluate_script you can omit it and this reuses that last evaluated source automatically (no need to re-send the whole script). Pass code explicitly to override, or whenever you have not evaluated this exact source yet. The result includes a slug — pass that slug on every subsequent call to UPDATE the same project in place: the user's open Studio tab re-renders live, so they can watch the model evolve as you iterate. Omit slug only for a new, separate model (each omission creates a new project and link). Trigger phrases: "open it in Studio", "let me see it", "show me the model"; also call it after you finish a build, and after each meaningful revision while iterating.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | The full .kcad source of the model to open in Studio (the script you have been editing). Optional: omit to reuse the source from your most recent evaluate_script call. | |
| slug | No | Slug returned by a previous open_in_studio call. When given, updates that existing project in place (live-updating the user's open Studio tab) instead of creating a new one. | |
| title | No | Optional human-readable title for the model (shown in Studio). Defaults to "Model from Claude". | |
| parameters | No | Optional list of the model's editable parameters, so Studio can render parameter controls. Each item is one control derived from the .kcad params. | |
| attachments | No | Complementary project files referenced by relative path from the .kcad source. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | Whether the model was persisted. | |
| url | No | The /p/<slug> Studio link for the model. | |
| slug | No | The project slug; pass it back to update this project in place. | |
| updated | No | True when an existing project was updated; false when a new one was created. | |
| version | No | Immutable Studio revision persisted by this call. Read it with get_project_revision using this slug and version. | |
| embedUrl | No | Read-only, chrome-free /embed/<slug> viewer URL — drop into an <iframe> to embed the live model in any site or widget (no login). | |
| assetHashes | No | ||
| attachmentCount | No |