agentsclimarketplace

Mcp playwright

Skill HelloWorldSungin/ark-ai-mcp/skills/mcp-playwright

Browser automation via Playwright MCP \u2014 navigate, interact, screenshot, and inspect web pages headlessly. Use for: 'scrape this page', 'fill out a web form', 'take a screenshot of a URL', 'check if a site is up'. Use when no browser session exists.From its SKILL.md

Install
npx -y skills add HelloWorldSungin/ark-ai-mcp --skill mcp-playwright

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

5.6 KB, as published. Nobody here has run it

<objective> Automate browser interactions through the Playwright MCP server via mcporter CLI. Navigate to URLs, click elements, fill forms, take screenshots, and read page content — all headless by default. Use this when you need to interact with web pages, verify UI, scrape content, or test web flows.

Playwright MCP vs Claude-in-Chrome: Use Playwright MCP for headless/CI/server automation where no browser window exists. Use Claude-in-Chrome MCP tools for interactive browser sessions where the user has Chrome open with the extension. </objective>

<process>

Call Syntax

# Colon-delimited
mcporter call playwright.TOOL_NAME key:value --output json

# Function-call style
mcporter call 'playwright.TOOL_NAME(key: "value")' --output json

Tool Reference

Navigation

ToolParametersDescription
browser_navigateurlNavigate to a URL
browser_navigate_back—Go back to previous page
browser_close—Close the current page

Observation

ToolParametersDescription
browser_snapshot—Accessibility snapshot of the page (primary observation tool)
browser_take_screenshot—Capture a PNG screenshot
browser_console_messages—Get browser console output
browser_network_requests—List network requests made by the page

Interaction

ToolParametersDescription
browser_clickelement, refClick an element (use ref from snapshot)
browser_typeelement, ref, textType text into an input
browser_select_optionelement, ref, valuesSelect dropdown options
browser_hoverelement, refHover over an element
browser_dragstartElement, startRef, endElement, endRefDrag and drop
browser_press_keykeyPress a keyboard key

Forms

ToolParametersDescription
browser_fill_formfieldsFill multiple form fields at once

JavaScript

ToolParametersDescription
browser_evaluateexpressionRun a JavaScript expression in the page
browser_run_codecodeRun a Playwright code snippet

Tabs, Waiting & Dialogs

ToolParametersDescription
browser_tabs—List open tabs
browser_wait_fortext or timeoutWait for text to appear or a timeout
browser_handle_dialogacceptAccept or dismiss a dialog
browser_file_uploadpathsUpload files to a file input

Setup

ToolParametersDescription
browser_install—Install the browser binary if missing

Common Workflows

Scrape Page Content

# Navigate and get accessibility tree
mcporter call 'playwright.browser_navigate(url: "https://example.com")' --output json
mcporter call playwright.browser_snapshot --output json

# Extract specific data via JavaScript
mcporter call 'playwright.browser_evaluate(expression: "document.querySelector(\"h1\").textContent")' --output json

Fill and Submit a Form

# Navigate and inspect
mcporter call 'playwright.browser_navigate(url: "https://example.com/login")' --output json
mcporter call playwright.browser_snapshot --output json

# Use refs from snapshot to interact
mcporter call 'playwright.browser_type(element: "Username field", ref: "e3", text: "[email protected]")' --output json
mcporter call 'playwright.browser_type(element: "Password field", ref: "e5", text: "password")' --output json
mcporter call 'playwright.browser_click(element: "Submit button", ref: "e7")' --output json

Take a Screenshot

mcporter call 'playwright.browser_navigate(url: "https://example.com")' --output json
mcporter call playwright.browser_take_screenshot --output json

Debug a Page

mcporter call 'playwright.browser_navigate(url: "https://example.com")' --output json
mcporter call playwright.browser_console_messages --output json
mcporter call playwright.browser_network_requests --output json
</process> <tips> - Discover all tools and parameters: `mcporter list playwright --all-parameters` - **Headless by default**: The server runs `--headless` since Claude operates in a terminal. No display server needed. - **First call is slower**: npx downloads `@playwright/mcp` on the first invocation. Subsequent calls reuse the cached package. - **Use `browser_snapshot` as your primary observation tool** — it returns an accessibility tree with element refs that you use for `browser_click`, `browser_type`, etc. - **Element refs**: After a `browser_snapshot`, use the `ref` values (e.g., `"e3"`) to target elements in interaction tools. - **Empty accessibility tree?** Use `browser_wait_for` with a timeout or text selector to wait for dynamic content to load, then retry `browser_snapshot`. - No authentication required — this server runs locally via npx. - **Install browser if needed**: If Playwright browsers aren't installed, call `browser_install` first. - Extended capabilities: Pass `--caps` flags when configuring the server for vision mode, PDF generation, or testing features. - Use `--output json` for machine-readable results. </tips>

Keep looking

Skills are one crate of 607,533. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.