🛍️ 更多精选好物 ›
📊 公开数据一览
| 📦 榜单安装量 | 21.4K |
| ⭐ GitHub Stars | 12,285(fork 652) |
| 🗓️ 最近推送 | 2026-07-15 |
| 🌱 项目创建 | 2020-06-19 |
| 💻 语言 / License | JavaScript · Apache-2.0 |
| 🐛 开放Issue | 1 |
📝 工具简介
RunComfy 的 Agent 技能,模型固定品牌技能加意图路由分类器,通过 skills.sh 分发。
📖 怎么用
全局安装跑 `npm install -g @playwright/cli@latest`,然后执行 `playwright-cli install --skills` 装技能。开始用先 `playwright-cli --help` 看命令,比如 `playwright-cli open https://demo.playwright.dev/todomvc/ --headed` 打开浏览器,`playwright-cli type "Buy groceries"` 输入文字,`playwright-cli press Enter` 回车,`playwright-cli check e21` 勾选元素。让 AI 跑测试就描述需求,比如"用 playwright skills 测 todomvc,成功失败都截图"。
📋 迷你测评
RunComfy的AI媒体技能,让Claude代理直接操作浏览器跑任务。亮点是视频生成场景下的浏览器自动化,省去手动操作。
📄 README 要点
这是基于Playwright的命令行工具,专门给AI编程代理用。作者对比了CLI和MCP两种方式,认为CLI更省token,因为不用加载庞大的工具架构和可访问性树到模型上下文里,代理通过简洁命令就能操作浏览器。MCP则适合需要持久状态和深度页面分析的场景,比如探索性自动化或自愈测试。如果你用编程代理做高频浏览器操作,CLI版本更合适。
查看英文原文
playwright cli Playwright CLI with SKILLS Playwright CLI vs Playwright MCP This package provides CLI interface into Playwright. If you are using coding agents , that is the best fit. CLI : Modern coding agents increasingly favor CLI–based workflows exposed as SKILLs over MCP because CLI invocations are more token efficient: they avoid loading large tool schemas and verbose accessibility trees into the model context, allowing agents to act through concise, purpose built commands. This makes CLI + SKILLs better suited for high throughput coding agents that must balance browser automation with large codebases, tests, and reasoning within limited context windows. MCP : MCP remains relevant for specialized agentic loops that benefit from persistent state, rich introspection, and iterative reasoning over page structure, such as exploratory automation, self healing tests, or long running autonomous workflows where maintaining continuous browser context outweighs token cost concerns. Learn more about Playwright MCP. Key Features Token efficient . Does not force page data into LLM. Requirements Node.js 18 or newer Claude Code, GitHub Copilot, or any other coding agent. Getting Started Installation [安装/使用命令见下方] Installing skills Claude Code, GitHub Copilot and others will use the locally installed skills. [安装/使用命令见下方] Skills less operation Point your agent at the CLI and let it cook. It'll read the skill off playwright cli help on its own: [安装/使用命令见下方] Demo [安装/使用命令见下方] Your agent will be running commands, but it does not mean you can't play with it manually: [安装/使用命令见下方] Headed operation Playwright CLI is headless by default. If you'd like to see the browser, pass headed to open : [安装/使用命令见下方] Sessions Playwright CLI keeps the browser profile in memory by default. Your cookies and storage state are preserved between CLI calls within the session, but lost when the browser closes. Use persistent to save the profile to disk for persistence across browser restarts. You can use d
💬 评论(0)
交流使用体验、避坑建议;违规内容将被删除