get_network
List captured network requests (most recent last), with filters. Use xhr_only for API/fetch calls, url_contains to match a path, method/status/failed to narrow. Rows are scoped to the active tab; pass all_tabs to see every tab's traffic. Each row carries durationMs (request start to load finished). Returns compact rows with an id; use get_request_details or get_response_body with that id, or get_network_bundle to pull rows and bodies together. Capture only runs for a tab once something has asked for it — this call itself is what turns it on for the active tab, like opening DevTools' Network panel. The first call on a tab returns a note saying capture just started and nothing before now was recorded; trigger the request AFTER that, then call again (or arm_network first to catch load traffic).
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.
{
"xhr_only": true,
"limit": 20
}Result#
Returns filtered captured request rows with IDs and timings. A first call can report that capture has only just started; reproduce the request afterward.
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 |
|---|---|---|---|
url_contains | string | No | See usage and full schema below. |
method | string | No | GET, POST, etc. |
type | string | No | XHR, Fetch, Document, Script, Stylesheet, Image, Font, ... |
xhr_only | boolean | No | Only XHR and Fetch (API calls) |
failed_only | boolean | No | See usage and full schema below. |
status_min | number | No | See usage and full schema below. |
status_max | number | No | See usage and full schema below. |
all_tabs | boolean | No | Include requests from every tab, not just the active one |
limit | number | No | Max rows, default 50, cap 200 |
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": {
"url_contains": {
"type": "string"
},
"method": {
"description": "GET, POST, etc.",
"type": "string"
},
"type": {
"description": "XHR, Fetch, Document, Script, Stylesheet, Image, Font, ...",
"type": "string"
},
"xhr_only": {
"description": "Only XHR and Fetch (API calls)",
"type": "boolean"
},
"failed_only": {
"type": "boolean"
},
"status_min": {
"type": "number"
},
"status_max": {
"type": "number"
},
"all_tabs": {
"description": "Include requests from every tab, not just the active one",
"type": "boolean"
},
"limit": {
"description": "Max rows, default 50, cap 200",
"type": "number"
},
"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