Map what a video player loads and sends with Claude Code and REA

José Antonio Garrido pointed Claude Code and the REA toolkit at YouTube's player; its network inventory matched his own log request for request, but it never found where quality is chosen.

Done withClaude CodeinYouTube· Oct 28, 2026

What they did

The author wanted to know what YouTube's web player downloads before playback, what it reports while a video plays, and how it picks a quality. He installed REA 6.8.0, an open-source reverse-engineering toolkit that runs as a CLI and as an MCP server, into Claude Code with its skill, and attached it to a separate Chrome profile over the DevTools port. He ran REA's capture, execution-tracing and bundle-analysis tools on two videos, throttled the connection to force quality changes, and checked every answer against his own DevTools network log and the player's stats panel. He also asked Claude Code the same questions in headless runs with the MCP server registered.

How it went

REA's capture matched his log request for request: about 81 requests in 28 seconds, 13.7 MB of JavaScript across 50 scripts, and the timing of the watch-time and quality reports, with a call stack for each. It did not find where the quality decision lives: static analysis timed out on the two scripts that matter even with 10 minutes each, and execution tracing returned only minified function names. Of three headless Claude Code runs, the first spent its 12 turns reading a 1.17 million character result, the second picked a tool that records only navigation, and the third, with the tool and parameters named, answered in seven turns and 50 seconds.

Worth knowing

Name the REA tool and exact origins in the prompt, and tell the agent to read large results from a file with jq; left to choose, it picked badly. REA only accepts exact origins, so wildcard video hosts are refused. Use a throwaway Chrome profile, since anyone who reaches the debugging port controls the browser.

Try it

With Claude Code· 6 parts to fill in

Using the REA MCP server, find out what [web page or app] loads before [the main action], what it sends while [the user does X], and which script sends each request. Connect to the Chrome I opened at [debugging port] with a throwaway profile. Use [REA tool name] with allowed origins [exact origins], save large results to files and read them with jq instead of loading them whole. Separate what you observed from what you infer, list anything REA filtered or could not analyse, and stop after the report without logging in or changing anything on the site.

Square brackets are the parts to fill in. The prompt is ours; the story is theirs.

Where they said it

Related