replay_request
Send a request with this tab's logins and read the answer: either a captured request again (id from get_network) with parts changed, or a new one (url). Use it to retry a failed API call, try one changed value, or check what another value returns, instead of rebuilding the request with execute_js. Captured method, headers and body are reused unless you pass your own; headers merge by name and null removes one. The tab's cookies are sent unless you pass a Cookie header. A redirect is returned, not followed, unless follow_redirects is true. It is a real request: one that changes or deletes data really does. Returns status, headers and body (text truncated to max_chars).
Example#
Call this MCP tool with the argument object below. Replace illustrative IDs, selectors, local paths, and project URLs with values observed in your session.
{
"id": "REQUEST_ID_FROM_GET_NETWORK",
"headers": {
"Accept": "application/json"
}
}Result#
Returns the answer's status, headers and body (truncated when long), how long it took, exactly what was sent, and any headers the browser refused to send. A redirect is returned with redirect_to unless follow_redirects is set.
Results arrive in MCP content blocks. Most structured results are JSON in text blocks; image tools can include image blocks. Handle errors and partial or truncated data. No formal output schema is declared for this tool.
Parameters#
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | No | A captured request id from get_network |
url | string | No | Address to request; overrides the captured one |
method | string | No | GET, POST, ...; defaults to the captured method or GET |
headers | object | No | Headers to add or change; null removes a captured header |
body | string | No | Request body; defaults to the captured body |
follow_redirects | boolean | No | See usage and full schema below. |
timeout_ms | integer | No | Default 30000 minimum: 1000; maximum: 120000 |
max_chars | integer | No | Most body characters returned, default 20000 minimum: 1; maximum: 200000 |
tab | string | No | Tab name or id in your workspace; does not change the visible tab. minLength: 1 |
Full input schema#
The schema includes nested shapes and constraints. Additional semantic constraints can apply at runtime; read the description and usage notes.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"id": {
"description": "A captured request id from get_network",
"type": "string"
},
"url": {
"description": "Address to request; overrides the captured one",
"type": "string",
"format": "uri"
},
"method": {
"description": "GET, POST, ...; defaults to the captured method or GET",
"type": "string"
},
"headers": {
"description": "Headers to add or change; null removes a captured header",
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
}
},
"body": {
"description": "Request body; defaults to the captured body",
"type": "string"
},
"follow_redirects": {
"type": "boolean"
},
"timeout_ms": {
"description": "Default 30000",
"type": "integer",
"minimum": 1000,
"maximum": 120000
},
"max_chars": {
"description": "Most body characters returned, default 20000",
"type": "integer",
"minimum": 1,
"maximum": 200000
},
"tab": {
"description": "Tab name or id in your workspace; does not change the visible tab.",
"type": "string",
"minLength": 1
}
},
"additionalProperties": false
}Related documentation#
Reference conventions · Agent operating guide · Troubleshooting