whodb_platform_app_screenshot
Capture a rendered app page at desktop, mobile, or tablet sizes after optional actions or JavaScript; returns a WebP image, visible text, diagnostics, and an optional trace.
Instructions
Capture a rendered app page at desktop, mobile, or tablet size after optional actions or JavaScript. Returns a WebP image, visible text, diagnostics, and an optional interaction trace on compatible runtimes. Hosted writes are blocked. Accepts workspace {host, org, project} for per-call targeting without changing defaults.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app | Yes | App ID or exact name in the selected project | |
| env | No | published (default) or dev | |
| tab | No | Optional visible tab or button label to open before capture | |
| page | No | Optional page returned by whodb_platform_app_views | |
| trace | No | Request an interaction trace from a compatible hosted app runtime | |
| width | No | Viewport width, default 1440 | |
| height | No | Viewport height, default 900 | |
| mobile | No | Emulate a touch-enabled mobile browser; default viewport 390x844 unless width or height is set | |
| script | No | Optional JavaScript expression or IIFE evaluated inside the app frame after actions | |
| tablet | No | Emulate a touch-enabled tablet browser; default viewport 820x1180 unless width or height is set | |
| actions | No | Ordered actions inside the app frame: click, fill, press, wait_for, or wait | |
| workspace | No | Optional target for this call only. Omit to use the session default set by whodb_platform_session_use, then process/saved defaults. Discover targets with whodb_platform_hosts, whodb_platform_orgs and whodb_platform_projects. | |
| orientation | No | Optional viewport orientation: portrait or landscape; rotates the device preset |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app | No | ||
| env | No | ||
| tab | No | ||
| page | No | ||
| error | No | ||
| scope | No | ||
| trace | No | ||
| width | No | ||
| app_id | No | ||
| height | No | ||
| mobile | No | ||
| tablet | No | ||
| mime_type | No | ||
| workspace | No | Optional target for this call only. Omit to use the session default set by whodb_platform_session_use, then process/saved defaults. Discover targets with whodb_platform_hosts, whodb_platform_orgs and whodb_platform_projects. | |
| request_id | No | ||
| diagnostics | Yes | ||
| orientation | No | ||
| visible_text | No | ||
| checks_passed | Yes | ||
| script_result_json | No |