Preview the app
myapp_get_previewShow the app to the user: call it whenever the user asks to see, show, display or preview the app or one of its pages. It shows the draft as the user would see it in the app, on a phone or a tablet, the whole app or one page: in the conversation where the client shows app views, otherwise as a link to a preview page. Use it in place of a drawing or a mockup of the app, which would not show the app. The draft holds the changes not yet published; the live app changes only when the user publishes from the back office. The link works for one hour. page is a page id or a page name read with myapp_get_app. pending gives the confirmation page of a pending removal and what it would remove. With base in place of app (a starter, a theme id from myapp_propose, a menu type and a name): a link showing the starter's demo app in that look with that name, before any app exists. Pass page to show the page a change touched (a write's result names it): without page, the preview shows the page of the last change or of the last preview made through this connection in the last 15 minutes, possibly in another conversation that uses it, or the home when there is none.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "myapp_get_preview"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app | No | The app id, as listed by myapp_get_app without app. | |
| base | No | A look for a new app: starter, theme (a theme id from myapp_propose), menu_type (the starter's default without it) and name. | |
| page | No | A page id or a page name, as read with myapp_get_app or named by a write's result; without page, the page of the last change or of the last preview made through this connection in the last 15 minutes, or the app's home. | |
| 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. | |
| device | No | phone (default) or tablet. | |
| pending | No | The pending id of a confirmation, as given by myapp_remove or myapp_undo. |