Open in the editor
open_in_editorPut a built version into the user's editor: in place of the open project, as a new one, or added as a group. Undoable.
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": "open_in_editor"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | replace (default): the version becomes the open project — one undo step, its name and file kept (an untitled project never saved takes the version's name), marked unsaved; refused when the project changed in the editor since get_project, holds layers the spec cannot express, or does not rebuild exactly from its spec. new: a project of its own in place of the open one — the editor asks the user to save unsaved work first. add: added to the open project as a group, one undo step. | |
| name | No | Explicit project name (or group name with add). Without this, replace preserves a custom project name. | |
| build | No | Which successful build of this session; the latest by default. | |
| rebase | No | With replace, reapply a patch-based build to the current project. Keeps independent artist edits, reports conflicting fields before writing, and creates one undo step. | |
| ifUnsaved | No | With new, when the open project has unsaved changes. ask (default): the editor asks the user Save / Don't Save / Cancel, and the call waits for the answer. cancel: refused at once, nothing changes (save_to_files open:true keeps the user's work first). discard: opens without asking — only when the open project is this session's own build, unchanged since it was opened; refused otherwise. |