web_capture — Claude Code prompt: what it does, how to install
The web_capture Claude Code prompt lists XHR/fetch responses received by the current tab. It helps inspect data a page loaded through an API.
Apache-2.0 ★ 9,488 updated 2026-11-16
.claude/commands/web_capture.mdWhat web_capture does
web_capture lists recent XHR/fetch responses from the current tab without their bodies. Pass an ID to view one response as JSON or text; long bodies are truncated.
Traffic recording begins after the page is first acted on or the prompt is first used. It reads only data the page has already loaded and makes no requests to the site's APIs. If the phone's browser cannot record traffic through DevTools, the prompt fails with devtoolsunavailable.
What it helps with
- find API responses received by the current tab
- inspect JSON behind data rendered unclearly with custom fonts
- read a specific response body by ID
Example prompts for the agent
- List the XHR/fetch responses received by the current tab.
- Show the body for response ID
123. - Find the JSON behind the data rendered unclearly on this page.
How to install web_capture
Manually: put the files in place
.claude/commands/web_capture.mdHow to use
Paste the text at the start of a chat or into project instructions
Questions about web_capture
How do I install web_capture in Claude Code?
Save the file at .claude/commands/web_capture.md.
What does web_capture do?
It lists XHR/fetch responses received by the current tab and can show a selected response body as JSON or text. Long bodies are truncated.
What does web_capture need to work?
The browser must be able to record network traffic through DevTools. Otherwise, the prompt fails with devtoolsunavailable.
Source text
web_capture.md · Apache-2.0
List the XHR/fetch responses the current tab received (newest {{list_max}}, without bodies), or pass id to get one with its body (JSON or text only, long bodies truncated). Useful when the page shows data loaded from an API: the JSON is often more complete than the screen, and it is where to read numbers the page draws garbled (custom fonts). Only read what the page itself loaded; do not send your own requests to the site's APIs. Recording starts the first time the page is acted on or this tool is used. Fails with devtools_unavailable when this phone's browser cannot record network traffic.
© wangzan101 · Apache-2.0 · wangzan101/Mika