• John

    开发网页,遇到数据不出来、不正常显示等,还是用 devtools mcp 又快又好地定位。但是太费 token 了吧。有啥别的好建议?playwright 会好点吗?

    主楼
  • XiaoQ1

    playwright CLI + SKILL

    #1
  • unsalted

    之前是用Agent browser,现在不知道有没有什么新的,或者codex自带的那个

    #2
  • Linus_Torvalds

    全部可以skills+cli

    图片

    skills.sh

    图片

    playwright-cli — microsoft/playwright-cli

    Automate browser interactions, test web pages and work with Playwright tests.

    图片

    skills.sh

    图片

    chrome-devtools-cli — chromedevtools/chrome-devtools-mcp

    Use this skill to write shell scripts or run shell commands to automate tasks in the browser or otherwise use Chrome DevTools via CLI.

    图片

    skills.sh

    图片

    agent-browser — vercel-labs/agent-browser

    Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling forms, clicking buttons, taking…

    #3
  • John

    前是用Agent browser,现在不知道有没有什

    cli 节省一点是什么原理。。。

    #4
  • Linus_Torvalds

    skills只把这加入上下文里

    图片

    #5
  • kkkqkx

    准确的说,应该是cli+skill比mcp省一点。因为mcp需要加载完整说明,工具schema也要放到系统提示词里。

    cli+skill在不需要获取skill时只加载一段描述,ai需要时才主动调用skill工具获取完整内容,而且也不需要工具schema(直接复用命令执行工具)

    #6
  • LiuMang

    日常页面操作建议用 Playwright CLI + Skill,基础导航和截图可再换更轻的 Agent Browser;只有查 Network、Console、性能时才启用 DevTools MCP。CLI + Skill 不必每轮携带完整工具 schema,再配合少取全量 snapshot,token 会明显低一些。

    #7

发表回复

登录后回复