ensure_editable_version
Returns the app's editable private version before the first edit, creating a new one with user consent and a given name when only locked versions exist.
Instructions
A version you can write to. Only a private version is editable; public, shared-by-link and in-moderation versions are locked: the API responds "The app version is not editable". An app has at most one private version, the latest: the tool returns it, and if there is none, creates a new one. A new version copies the latest entirely, entity IDs in it stay the same, and users don't see the changes until the version is published (that is done in the builder, not with tools). A new one is created only with the user's consent and under the name they give: name + confirmed: true. Call this before the first edit of an app that already has published versions.
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": {
"appId": "<appId>"
},
"name": "ensure_editable_version"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Name of the new version, from the user: usually the task or the gist of the change. Needed only if a version has to be created | |
| appId | Yes | App ID | |
| confirmed | No | The user agreed to create a new version |