PreToolUse→
agent-browser-solo
PreToolUseWebFetch
Claude
Services WebFetch through a real browser instead of plain HTTP.
Intercepts WebFetch and fetches the page with agent-browser (headless Chrome) in an isolated session, delivering JS-rendered extracted text to the model in the same turn — one fetch, one quiet transcript line, no retry. Client-rendered pages that return a 10-byte shell over HTTP come back as complete content in about 1.5 seconds. Fetched text is sanitized, capped at 30KB, and wrapped in untrusted-data markers; near-empty results and missing-binary cases fall back to native WebFetch. Claude-only: Codex has no WebFetch tool to intercept — its counterpart is the browser-intent hook.