Dea DardanicaDocumentation
Network, events, and healthRead Markdown

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.

json
{
  "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#

get_network — table 1
ParameterTypeRequiredDescription
url_containsstringNoSee usage and full schema below.
methodstringNoGET, POST, etc.
typestringNoXHR, Fetch, Document, Script, Stylesheet, Image, Font, ...
xhr_onlybooleanNoOnly XHR and Fetch (API calls)
failed_onlybooleanNoSee usage and full schema below.
status_minnumberNoSee usage and full schema below.
status_maxnumberNoSee usage and full schema below.
all_tabsbooleanNoInclude requests from every tab, not just the active one
limitnumberNoMax rows, default 50, cap 200
tabstringNoTab 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.

json
{
  "$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
}

Reference conventions · Agent operating guide · Troubleshooting