Caplets Catalog
official
spiritledsoftware/caplets

Playwright

Drive a browser through Playwright MCP for frontend testing, inspection, and automation workflows.

Install
caplets install spiritledsoftware/caplets playwright

Inspect before installing

  • Local controlThis Caplet can operate against local project or machine state.
  • Setup requiredThis Caplet includes setup steps that should be completed before use.
CAPLET.md

Frontmatter

Field Value
name Playwright
description Drive a browser through Playwright MCP for frontend testing, inspection, and automation workflows.
tags browser, testing, mcp, frontend
catalog.icon https://playwright.dev/img/playwright-logo.svg
setup.commands[0].label Install Playwright MCP
setup.commands[0].command npm
setup.commands[0].args install, -g, @playwright/mcp@latest
setup.commands[0].timeoutMs 120000
setup.commands[0].maxOutputBytes 200000
setup.commands[1].label Install Chromium browser
setup.commands[1].command npx
setup.commands[1].args -y, playwright@latest, install, chromium
setup.commands[1].timeoutMs 180000
setup.commands[1].maxOutputBytes 200000
setup.verify[0].label Check Playwright MCP
setup.verify[0].command playwright-mcp
setup.verify[0].args --help
setup.verify[0].timeoutMs 10000
setup.verify[0].maxOutputBytes 20000
mcpServer.command playwright-mcp
mcpServer.args --headless

Playwright

Use this Caplet when the agent needs an isolated browser automation surface for frontend debugging, accessibility checks, visual inspection, or end-to-end testing workflows.

First Workflow

  1. Open the target local or preview URL and wait for the page to settle.
  2. Inspect visible state, accessibility tree, console errors, network behavior, or screenshots before acting.
  3. Reproduce the smallest user flow that proves or disproves the issue.
  4. Capture concise evidence for the code change or review.

Operate Carefully

  • This Caplet runs a browser runtime. Keep tests scoped to the target app and avoid unrelated browsing.
  • Prefer this over Browser Use for isolated test flows; use Browser Use only when the user's real signed-in browser context matters.
  • If browser setup is missing, treat the Caplet as unavailable until setup verification succeeds rather than improvising shell installs.