Playwright

Download 0
Last updated Sep 5, 2026

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 ![caption](download_url). 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

FieldTypeNameDescription
session_idStringSession ide.g. 6f1c2a08-6c1e-4a1b-9a5e-9b2f0d3c7e11
urlStringURLPage that was captured. e.g. https://fw.example.com/policy/list
titleStringPage titlee.g. Policy - Firewall Console
file_guidStringFile guide.g. 3f2b8c10-5d4a-4e2f-8c7b-1a2b3c4d5e6f
file_nameStringFile namee.g. policy-list-20260905-101530-412.png
file_sizeLongFile sizeIn bytes. e.g. 24680
download_urlStringDownload URLServed inline. e.g. /files/3f2b8c10-5d4a-4e2f-8c7b-1a2b3c4d5e6f
sonar_urlStringFile store URLe.g. sonar://3f2b8c10-5d4a-4e2f-8c7b-1a2b3c4d5e6f
errorStringErrorSet when the capture was refused. e.g. page is not ready