AGENT SKILL

using-playwright-mcp

Use when working with the Playwright MCP server, choosing the right browser tool call, or falling back to non-MCP Playwright surfaces when the MCP does not cover the task.

License 许可
MIT
最近更新
2026-10-08
Stars
★ 0
Forks
0

01 前言 Front Matter

name
using-playwright-mcp
license
MIT
metadata
{ "owner": "Harley Bartles", "status": "active", "use_when": [ "working with the Playwright MCP server, choosing the right browser tool call, or falling back to non-MCP Playwright surfaces when the MCP does not cover the task." ], "source-id": "using-playwright-mcp", "source-path": "skills/using-playwright-mcp/SKILL.md", "do_not_use_when": [ "another more specific skill owns the task." ], "provenance-name": "Using Playwright MCP first-party skill", "source-category": "first_party" }
description
Use when working with the Playwright MCP server, choosing the right browser tool call, or falling back to non-MCP Playwright surfaces when the MCP does not cover the task.

02 资源文件 10

03 SKILL.md 正文

Using Playwright MCP

Use this skill to pick the right mcp-playwright tool for browser automation or web inspection, and to fall back safely to other Playwright surfaces when the MCP does not have what you need.

Runtime availability

Inspect the tools exposed in the current runtime before calling MCP. This capability is available independently of repository subscriptions. If the MCP surface is absent or lacks the needed action, use a documented Playwright alternative only when it is actually available; otherwise report the missing capability and stop the dependent browser action.

Router

Intent Read first
Open a page, search for text, or capture a page snapshot references/navigation-and-discovery.md
Click, type, hover, drag/drop, fill forms, select options, upload files, or handle dialogs references/interactions.md
Evaluate JavaScript, read console, inspect network, or take screenshots references/inspection.md
Manage tabs, resize, wait, or close the browser references/tabs-and-lifecycle.md
The MCP does not cover the task; use another Playwright surface references/other-playwright-tools.md
Need the complete callable surface references/surface-map.md

Fast rules

  1. MCP first. Start by routing to the use-case file that matches your intent.
  2. Confirm absence before exit. Before opening references/other-playwright-tools.md, check references/surface-map.md or run mcp_list_tools for mcp-playwright to confirm the needed tool is not there.
  3. Environment check for fallbacks. Before using a non-MCP Playwright tool, run inspecting-the-environment to confirm it is installed and available.

04 同仓库更多 Skills