Apply Per-Language Screenshots
apply_locale_screenshotsAssigns language-specific screenshot assets to existing translated device frames. Sources are locale folders, per-language paths or a shared path list. Assignment follows document order; unfilled frames retain their images and excess sources are reported. Preview mode returns assignments without saving. Apply mode replaces only the targeted translation images.
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>",
"variantId": "<variantId>"
},
"name": "apply_locale_screenshots"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| preview | No | Return the frame assignments without saving. | |
| platform | No | both | |
| languages | No | Translations to update; defaults to every language the source covers. | |
| projectId | Yes | ||
| variantId | Yes | Screenshot variant to update. | |
| deviceType | No | mobile | |
| localeFolders | No | ||
| screenshotPaths | No | ||
| screenshotPathsByLanguage | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| error | No | ||
| message | No | ||
| success | Yes | ||
| widgetDataJson | No |