Read one response body
cdp_response_bodyReads a response body by requestId from an attached tab, enforcing allowlist and size caps so only authorized requests return content.
Instructions
Read one response body by requestId from an attached tab. Deny by default: the request origin must be in the popup body-capture allowlist, which does not accept *. Restricted-category origins are refused even when listed. Binary bodies (base64Encoded) are refused. Bodies over the size cap return an error, never a truncated body. Token-shaped JSON fields receive best-effort masking of obvious token-shaped fields, not a guarantee — treat any response body as if it contains credentials. Response headers, Set-Cookie, and Network.getRequestPostData are never exposed. Each successful read is recorded to an append-only metadata log; body content is never written there.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| requestId | Yes | requestId from cdp_network_requests. | |
| sessionTabId | Yes | Claimed tab session id returned by claim_tab. |