| name | inspect |
| description | Open a browser and start visual element inspection mode for frontend development |
| argument-hint | <url> |
| allowed-tools | ["Bash(node *)","Read(.claude-inspect/*)"] |
Inspect
Opens a Chromium browser, navigates to the URL, and enables visual element selection mode.
Important: CLI Path
The CLI is located relative to this skill's base directory. Construct the path using the base directory provided at the top of this prompt:
CLI_PATH = <base directory>/../../dist/cli.js
All commands below should be run as: node <CLI_PATH> <command> [args]
Instructions
- Run
node <CLI_PATH> launch $ARGUMENTS to start the browser
- Tell the user the browser is open and they can hover over elements and click "→ Claude Code" to select them. STOP here and wait for the user's next message. Do NOT autonomously run navigate, screenshot, or any other command.
- When the user selects an element (indicated by
[Component #N] in chat), read the selection file from .claude-inspect/selections/N.txt for full component details
- Run other commands (screenshot, logs, network, perf, etc.) when the user asks
Available Commands
node <CLI_PATH> launch <url> [--headless]
node <CLI_PATH> navigate <url>
node <CLI_PATH> screenshot [--fullpage]
node <CLI_PATH> close
node <CLI_PATH> inspect <selector>
node <CLI_PATH> select start
node <CLI_PATH> select wait [--timeout=N]
node <CLI_PATH> select stop
node <CLI_PATH> logs [--type=error|warn|all]
node <CLI_PATH> network [--failed]
node <CLI_PATH> perf
node <CLI_PATH> components [--selector=<s>]
node <CLI_PATH> find-component <name>
node <CLI_PATH> status
Output Locations
All data is saved to .claude-inspect/ as files. Use Read tool for full data.
| Command | Output |
|---|
| screenshot | .claude-inspect/screenshots/{timestamp}.png |
| logs | .claude-inspect/logs/{timestamp}.json |
| network | .claude-inspect/network/{timestamp}.json |
| perf | .claude-inspect/perf/{timestamp}.json |
| inspect | .claude-inspect/inspections/{timestamp}.json |
| components | .claude-inspect/components/{timestamp}.json |
| select wait | .claude-inspect/selections/{timestamp}.json |