save_panel
Atomically save the edited SceneDoc from get_panel and return its image immediately by default. Supports every editor property and any number of layer edits in one revision; connected hero slices update together. Send expectedRevision from get_panel. Preserve canvas, family and panorama metadata. Missing copy uses neutral draft defaults, matching gallery and editor; explicitly empty strings stay empty. Complete or omit missing text with set_copy before export. A preview failure is returned as previewError after a successful save; do not repeat the write. preview:false saves without rendering. Final export still uses export_project and preview_render.
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": {
"projectId": "<projectId>",
"position": "<position>",
"expectedRevision": "<expectedRevision>",
"scene": "<scene>"
},
"name": "save_panel"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scene | Yes | Complete SceneDoc JSON returned by get_panel: version, canvas, background, layers and optional backgroundLayers, studio, panorama. Edit layers in place; preserve bindings and metadata. Full editor validation applies. | |
| family | No | iphone | |
| locale | No | Omit for the project’s main localization. | |
| maxSide | No | ||
| preview | No | ||
| position | Yes | ||
| projectId | Yes | ||
| expectedRevision | Yes |