Save Layout
save_layoutReplaces complete saved screenshot layouts for the specified device sizes and language. Omitted formatLayouts preserves independent formats; an empty map resets them. Main layouts do not overwrite independent phone-format layouts.
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": {
"language": "<language>",
"mobileLayout": "<mobileLayout>",
"tabletLayout": "<tabletLayout>"
},
"name": "save_layout"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| language | Yes | ||
| projectId | No | Alias of generationId (the project id). | |
| variantId | No | ||
| generationId | No | Project id: the same UUID as projectId from list_projects/get_project (generationId is its legacy name). You may pass projectId instead. | |
| mobileLayout | Yes | Complete Layout object for the phone canvas. Shape documented in applaunchflow://schema/layout. | |
| tabletLayout | Yes | Complete Layout object for the tablet canvas. Same shape as mobileLayout, different canvasWidth/canvasHeight. | |
| desktopLayout | No | Optional complete Layout object for the desktop canvas. Same shape as mobileLayout. | |
| formatLayouts | No | Complete phone-format override map. Keys include ios-duo-inner and ios-duo-outer. Omit to preserve; {} resets all formats to follow main. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| error | No | ||
| message | No | ||
| success | Yes | ||
| widgetDataJson | No |