Snapshot-aware tree inspection
Collect a tree once, keep the returned snapshot context, and inspect nodes deterministically instead of chasing unstable live ids.
A Playwright-native CLI for tree snapshots, node inspection, deterministic interaction, and commit-oriented profiler analysis.
react-devtool-cli gives agents and engineers a structured command surface for investigating React applications from the terminal. It is built for workflows where opening the DevTools UI is either too manual, too hard to automate, or too indirect for repeatable debugging.
Unlike browser extensions or frontend-only DevTools flows, rdt owns the browser session through Playwright. That makes it useful for automated investigations, remote environments, and agent-driven debugging loops where commands need deterministic output and explicit trust boundaries.
session open, session connect, or session attachtree getnpm install -g react-devtool-cli
rdt session open --url http://localhost:3000 --session demo
rdt tree get --session demo
rdt node search App --session demo --snapshot <snapshotId>That sequence captures the core model of the tool:
rdt manages.snapshotId.| Area | react-devtool-cli bias |
|---|---|
| Runtime host | Playwright-managed browser session |
| Primary interface | Structured CLI output for agents and engineers |
| Tree stability model | Snapshot-scoped node ids |
| Profiler output | Commit-oriented summaries and NDJSON export |
| Trust boundary | Explicit observationLevel, limitations, and runtimeWarnings fields |