fault.replace_response
Return synthetic HTTP responses for matching browser requests to simulate errors or custom statuses, headers, and bodies.
Instructions
Return a synthetic response for matching requests, e.g. a 500 with an error body.
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": {
"url": "<url>"
},
"name": "fault.replace_response"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| body | No | ||
| count | No | ||
| status | No | ||
| headers | No | ||
| target_id | No | Target handle (tgt_*). Omit for the active page. | |
| browser_id | No | Browser handle (br_*). Omit to use the only running browser, or auto-launch one. |