Skip to main content
Glama
playwright-mcp-router

playwright-mcp-router

by huangzt

browser_network_request

Read-only

Retrieve headers and body details for a single network request by its index, optionally returning only request or response headers/body. Use it to inspect captured traffic from a session.

Instructions

Returns full details (headers and body) of a single network request, or a single part if part is set. Use the number from browser_network_requests.

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": {
      "session": "<session>",
      "index": "<index>"
    },
    "name": "browser_network_request"
  }
}

Input Schema

NameRequiredDescriptionDefault
partNoReturn only this part of the request. Omit to return full details.
colorNoOptional Chrome tab group color override for a newly created session.
indexYes1-based index of the request, as printed by browser_network_requests.
accountNoChrome account profile to use (defaults to 'default'). Configured accounts: 'default' (Isolated Browser).default
sessionYesRequired isolated session name (also displayed as the Chrome tab group title), e.g. "T1867-api-debug" or "home-css". Use a unique, descriptive task name per conversation so concurrent agents never hijack each other's active tab.
filenameNoFile name to save the result to. Relative file names are resolved against the workspace root. If not provided, output is returned as text.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=true, so the safety profile is covered. The description adds the detail that output can be narrowed to a single part, but says nothing about size limits, truncated or missing bodies, or what happens when a request is no longer retained — relevant for a network inspection tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two short sentences with zero filler, front-loading what is returned before explaining the index prerequisite. Nothing is redundant or buried.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description does tell the agent the shape of the return (headers and body) and that it can be narrowed per part. For a read-only single-item fetch with fully documented parameters this is nearly complete, though edge cases like stale indices are unaddressed.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so index, part, session, account, color and filename are all documented in the schema itself. The description only restates the part-filtering behavior and the index source, adding little beyond structured fields; baseline 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ("Returns full details (headers and body) of a single network request") plus the part-scoped variant. It is clearly distinguishable from the sibling list tool browser_network_requests, which it explicitly references.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Tells the agent how to obtain the required index ("Use the number from browser_network_requests"), establishing the natural call order with the sibling. It does not explicitly state when not to use it or that the list tool should be preferred for enumerating requests, so it stops short of full when/when-not guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.