save_localization
Save a complete localization JSON document atomically with stale-write protection. Edit document.copy for token text and document.screens scenes for literal text, sticker labels, image sources and design. All fields in web editor are supported. Save affects only this locale. previewPosition optionally returns its draft PNG immediately; preview failure never repeats the save.
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>",
"expectedRevision": "<expectedRevision>",
"document": "<document>"
},
"name": "save_localization"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| maxSide | No | ||
| document | Yes | Complete localization document JSON returned by get_localization or get_localization_documents. Preserve version, locale, design, screens and copy; edit scenes, text and image bindings. Full document validation applies. | |
| projectId | Yes | ||
| previewPosition | No | ||
| expectedRevision | Yes |