Preview hosted app
preview_appLook at a hosted app as a visitor sees it: returns screenshots of its live address on a phone (390×844) and a desktop (1280×800) as JPEG images, taken once the page has loaded. Use it after deploy_app or edit_app_source and before giving the user the link: check the layout, the text, the empty and error states, and fix what looks wrong. New files can take about a minute to be served, so a preview right after a change may still show the old version. An app that is not public is opened without its password or a sign-in, as a visitor who changes nothing: what the page shows only to a signed-in member, such as comments, is missing. Requires permission to edit the board the app shows.
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": {
"slug": "<slug>"
},
"name": "preview_app"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes | Slug of the app, from list_apps | |
| organization | No | Workspace slug, as returned by list_organizations. Omit it when the account has a single workspace — it is then resolved from your token. Pass it only when the account has several, or when you mean a workspace other than the obvious one. |