playwright-screenshot
Captures the current screen of an open browser session as a PNG in the file store and returns its URLs.
download_url is served inline, so an answer can show the image by writing . sonar_url is what sonar-ai-ask-image reads when the picture needs to be interpreted rather than shown.
The file belongs to the calling user and expires after the configured retention period.
playwright-screenshot session-id=VALUE [label=VALUE] [full-page=VALUE]
- session-id=VALUE
- Required. Browser session to capture. e.g. the session_id returned by playwright-open
- label=VALUE
- Optional. Included in the stored file name. e.g. policy-list
- full-page=VALUE
- Optional. f by default, capturing the viewport only, because a full page of a long console list can reach several megabytes. Pass t to capture the whole scrollable page.
Output Fields
| Field | Type | Name | Description |
|---|---|---|---|
| session_id | String | Session id | e.g. 6f1c2a08-6c1e-4a1b-9a5e-9b2f0d3c7e11 |
| url | String | URL | Page that was captured. e.g. https://fw.example.com/policy/list |
| title | String | Page title | e.g. Policy - Firewall Console |
| file_guid | String | File guid | e.g. 3f2b8c10-5d4a-4e2f-8c7b-1a2b3c4d5e6f |
| file_name | String | File name | e.g. policy-list-20260905-101530-412.png |
| file_size | Long | File size | In bytes. e.g. 24680 |
| download_url | String | Download URL | Served inline. e.g. /files/3f2b8c10-5d4a-4e2f-8c7b-1a2b3c4d5e6f |
| sonar_url | String | File store URL | e.g. sonar://3f2b8c10-5d4a-4e2f-8c7b-1a2b3c4d5e6f |
| error | String | Error | Set when the capture was refused. e.g. page is not ready |