Take a picture of an app
screenshot_appOpens one page of a deployed app in a browser and returns a picture of it, with any errors the page reported while it loaded. Use it after a deploy to see what a person will see, which rows and logs cannot show: a blank page, a broken layout, text that does not fit. A preview deployed without an account is shown as a guest. An app in the account is shown signed in as the connected person. Only for apps the person owns or administers.
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": "screenshot_app"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app | No | The app's slug: the first label of its address (my-app for https://my-app.fuast.com). list_apps shows the slugs you can use. | |
| dark | No | The visitor's dark setting. Default light. | |
| path | No | The page, as a path from the app's root, like /orders or /orders/12?tab=open. Default /. | |
| width | No | Window width in pixels, to override the default. | |
| height | No | Window height in pixels, to override the default. | |
| mobile | No | A phone (390 by 844) instead of a desktop window (1280 by 800). | |
| full_page | No | The whole page, not only the first screen. | |
| edit_token | No | The edit_token deploy_app returned when it deployed a preview without an account. It is a secret: keep it in this conversation only. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| slug | Yes | ||
| title | No | ||
| width | Yes | ||
| errors | Yes | ||
| height | Yes | ||
| signed_in_as | No |