save_response_body
Save captured HTTP response bytes to a specified file path. Use request_id to reference a captured response, and allow_partial to save truncated data if needed.
Instructions
Save captured response bytes (JS/WASM/JSON/binary) without refetch/replay.
Args: request_id: A captured ID with a completed body (capture_body=True). save_path: New file path. Never overwrites existing files. allow_partial: Explicitly permit a truncated body; default rejects it.
Returns: Path, saved byte length, SHA-256 and partial flag. Bytes are Playwright's decoded HTTP response body (not original compression/wire bytes). If the body was missing or truncated, increase the capture limit and collect a new sample intentionally; this tool never triggers a new request.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"request_id": "<request_id>",
"save_path": "<save_path>"
},
"name": "save_response_body"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| save_path | Yes | ||
| request_id | Yes | ||
| allow_partial | No |