wait_for_network
Waits for a network request or response matching a URL pattern, then returns its headers and body; pass since to capture a request that already fired.
Instructions
Wait for a request matching a URL pattern and return it with headers and bodies. By default it waits for a response that finishes after this call; pass since (a request id noted before the action) to also accept one that already happened, e.g. the XHR a click just fired.
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": {
"pattern": "<pattern>"
},
"name": "wait_for_network"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| phase | No | "response" (default): the response has finished. "request": the request was sent. | |
| since | No | Accept requests with an id greater than this (0: any captured request). | |
| tabId | No | Tab to act on, from tabs_context. Omitted: this session's active tab. Pass it always when several agents share the session. | |
| method | No | ||
| pattern | Yes | Regular expression matched against the URL. | |
| max_chars | No | Cap per body (default 8000). | |
| timeout_s | No | Seconds to wait (default 15). | |
| reveal_values | No | Show secrets (cookie values, tokens, passwords) instead of masking them. They end up in the transcript; use only when the value itself is needed. |