Change the app
myapp_changeChange what exists in the app, as a draft that can be undone: colors, fonts, layout (template), style, visibility, images, logo, icons, texts, links, copying the design of another page, following the app's common style or having an own style, order, menu type and page settings. One call holds 1 to 20 changes on one target and makes one step that myapp_undo reverts; a change of image, a copy of design or a change of common style goes alone in its call. Each change names an address read with myapp_get_app (intent, and role, item and detail when the read gives them) and a value; a role without item changes every element of that role in the part. Colors are #RRGGBB, transparent or a color name of the app palette; gradients {from, to, angle} with an angle in steps of 45; fonts a family name or Family:weight (e.g. Poppins:600); without a weight, the current weight is kept when the new family has it, otherwise 400 or the family's first weight; icons an icon name or {icon_id}, as found with myapp_get_app (include icons and query); a word that names no icon is refused with the closest icons; sizes numbers within the allowed range; choices one of the allowed labels; images a public https URL; links {page}, {url}, {phone}, {sms}, {email} or {stores}; order {position}, {before} or {after}, and for a page {menu, position} to move it into the menu (true) or out of it (false), or {folder, position}; null removes an image, a link or a gradient. On a page without a part, visibility publishes or hides the page, icons changes the icon of the page, shown on its tile in a folder list (the icon of a tab is that of its menu item: scope menu_item, item item.icon) and order moves it. These changes stay in the app's draft: users see them at the next Publish of the back office, unlike content added or changed with content_add and content_change, visible at once. The answer gives each change before and after, the change_id and a preview link; a refusal says why and what is possible instead. The app can also change outside this conversation: before acting on what was read earlier, read it again with myapp_get_app; after a conflict or an unexpected result, read it again before trying again. With draft, some changes come once the app is kept in the user's account (images and other files, content, sources, extensions, user groups, changes that cannot be undone): the refusal says which, and myapp_create with the draft keeps the app. On a draft only, intent look, alone in its call with target scope app, changes what the app starts from: value {theme, menu_type, name}, at least one, theme a look id from myapp_propose; the changes made are applied again on it.
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": {
"target": "<target>",
"changes": "<changes>"
},
"name": "myapp_change"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app | No | ||
| draft | No | Secret of a draft, returned once by myapp_create without an account: the app as it takes shape, before it is kept in the user's account. Pass it back as draft, instead of app, to read, preview and change it, until myapp_create with this draft keeps the app in the account. It is not an id: do not show it to the user. | |
| target | Yes | Where the change applies, with names read with myapp_get_app. | |
| changes | Yes |