Agent skill · software engineering · aiskillstore

playwright-browser

Control a Playwright browser via CLI - navigate, interact, and screenshot

Why this skill is useful

Adds executable scripts for browser automation with Playwright that enhance the AI's capabilities in web interaction.

What it needs

Requires bun, playwright installed locally. About 2k tokens when loaded. Last updated 2026-08-07. 405 stars on the source repository.

What this skill does

Overview CLI tools for controlling a Playwright browser. Uses Playwright's accessibility tree for lightweight, efficient page interaction. Interactive Session Workflow Start a persistent browser session and issue commands against it: Commands Session Manage a persistent browser session for interactive use. Options: --headless - Run in headless mode (default: headed/visible) Examples: --- Navigate Navigate to a URL in the browser. Examples: --- Snapshot Get the accessibility tree of the current page. Shows the page structure in a text format. Use this to find elements to interact with. Output format: --- Type Type text into an input element on the page. Arguments: ref - Element reference (role:name, text:content, or CSS selector) text - Text to type Options: --press <key> - Press a key after typing (e.g., Enter, Tab) Examples: --- Click Click an element on the page. Arguments: ref - Element reference (role:name, text:content, or CSS selector) Examples: --- Screenshot Take a screenshot of the current page. Options: --output <path> - Output file path (default: screenshot.png) --full - Capture full page (scrolls entire page) Examples: --- Element References Commands that interact with elements (type, click) accept flexible element references: Format Example Description -------- --------- ------------- role:name combobox:Search Accessibility role and name text:content text:Sign in Element containing text CSS selector #login-btn Standard CSS selector CSS selector input[name='q'] Attribute selector Recommended workflow: 1. Use snapshot to see the accessibility tree 2. Find the element's role and name 3. Use role:name format for reliable interaction Error Recovery Commands provide helpful error messages with suggestions: Element not found: "Element 'X' not found. Try: snapshot to see available elements" Session issues: Commands automatically start a session if none exists Navigation failures: "Navigation failed at URL. …

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills aiskillstore/playwright-browser

View the source on GitHub

Browse the @skills marketplace