dev-browser
Use Chrome DevTools MCP for browser-based verification, UI regression checks, screenshots, console/network inspection, and quick performance traces. Trigger when verifying frontend changes in a live browser, capturing evidence, or debugging client-side issues.
安装与使用
请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。
查看来源 ↗使用指南技能说明
Dev Browser (Chrome DevTools MCP)
Use the Chrome DevTools MCP tools to verify UI changes, capture evidence, and inspect console/network state.
When to use
- Verify frontend changes in a live browser
- Capture viewport or full-page screenshots
- Inspect console errors/warnings
- Inspect network requests and responses
- Run quick performance traces
Preconditions
- Chrome is installed and reachable by the MCP server
- MCP is configured in
~/.config/opencode/opencode.json - Prefer headless mode for automation
- Avoid sensitive data in the browser session
Standard workflow
- Discover or select a page:
-
list_pages -
select_page(if needed)
-
- Navigate:
-
new_pageornavigate_page
-
- Wait for stability:
-
wait_for(use a key selector or page-ready signal)
-
- Capture evidence:
-
take_screenshot(setfullPage: truefor full page) -
take_snapshotfor DOM snapshot
-
- Debug:
-
list_console_messages -
list_network_requests→get_network_requestfor details
-
Performance (optional)
-
performance_start_trace - Interact or wait for the target state
-
performance_stop_trace -
performance_analyze_insight
Output expectations
- Provide screenshot path or attached image
- Summarize console and network findings
- Note any errors and next checks
Quick example
Use the dev-browser skill to verify /en/games/... renders correctly, capture a full-page screenshot, and confirm there are no console errors.
使用示例
查看来源仓库中的使用示例与配置说明。
查看来源 ↗来源历史
- 收录时间
- 2026-01-20
- 索引更新时间
- 2026-02-05
- Branch
- main
收录与同步日期属于本站记录。源码修改历史请查看来源仓库。
GitHub ↗chat Comments (0)
Sign in to join the discussion and leave a comment.
No comments yet. Be the first to share your thoughts!