Overview
Take a screenshot of a running page and Read it into context so you can see the rendered result yourself — for design review, responsive checks (desktop + mobile widths), and confirming a layout fix actually looks right. This skill returns an image, not page data.
Engine selection (handled by the tool)
The bundled tool picks the best available local engine automatically:
- System
playwright-cli(Microsoft's stateful agent CLI) — used when it is onPATHand no exact viewport/full-page is requested (itsscreenshotcommand can't set those). - PAL-installed Playwright, launched in-process — the precise path. Honors
--viewport,--full-page, and--selectorprecisely.
If neither engine is usable, the tool prints NO_PLAYWRIGHT_CLI and exits non-zero — only then use the Playwright MCP (tier 3) in step 4.
Workflow
Resolve the URL. If it's a local app, make sure the dev server is already running first.
Run the tool (it prints the absolute PNG path as its last stdout line):
pal cli skill run playwright shot <url> \ [--viewport 1440x900] [--full-page] [--selector "<css>"] [-o <out.png>]Readthe printed path so the screenshot enters your context. For a responsive check, run once per width (e.g.--viewport 1440x900then--viewport 390x844) and Read each.If the tool exits with
NO_PLAYWRIGHT_CLI:- If Playwright MCP tools (
mcp__playwright__browser_*) are available:browser_navigateto the URL,browser_take_screenshotto a file, thenReadit. - Otherwise, tell the user Playwright isn't installed and suggest running
pal cli install.
- If Playwright MCP tools (
Output format
The screenshot image (via Read) plus one line stating the URL and viewport captured. Add a review only if the caller asked you to assess the design.
When to use
- "check visually", "use playwright", "screenshot this", "see/look at the design yourself", "does this look right", desktop/mobile layout verification.
Do NOT use
- To scrape page text or DOM data — fetch the page directly instead; this returns an image.
- To measure computed styles, element sizes, or horizontal overflow — use the Playwright MCP
browser_evaluatefor metrics; this skill does not return numbers.