Skip to main content
Glama
Pagewright (browser-mcp)

Pagewright (browser-mcp)

by zamansheikh

browser_network_body

Read-only

Retrieve the response body for a captured network request, including JSON API responses, and optionally save it to a file for inspection or reuse.

Instructions

Get the response body of a request listed by browser_network (e.g. an API's JSON). Optionally save it to a file.

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": {
      "requestId": "<requestId>"
    },
    "name": "browser_network_body"
  }
}

Input Schema

NameRequiredDescriptionDefault
tabIdNoTab to act on. Defaults to the tab last opened/selected by an agent, else the active tab.
maxCharsNo
savePathNo
requestIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.1

TDQS

A3.5/5.0
Behavior2/5

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

readOnlyHint=true already tells the agent this is a safe read of browser state, so the description's remaining job is to disclose non-obvious behavior, and it mostly doesn't. It says nothing about truncation, binary or non-text bodies, failed/missing requests, or whether the body can be fetched more than once. The one genuinely new behavior it adds is the optional file write, which sits slightly awkwardly with readOnlyHint but is a user-directed side effect rather than a read/write contradiction.

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, the core action and its dependency front-loaded, with no filler. Every clause carries information an agent can act on.

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

Completeness3/5

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

There is no output schema, so the description must carry the return-value burden, and it only says the result is a response body, e.g. JSON. For a 4-parameter tool with a 25%-documented schema, it omits truncation limits, body-unavailable cases, and output format when saving to disk, leaving meaningful gaps for an agent to discover by trial.

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 description coverage is only 25% (only tabId is documented), so the description needs to compensate and largely fails: maxChars is never mentioned despite implying truncation, and savePath is only hinted at by 'optionally save it to a file' with no format, overwrite, or permission semantics. requestId is implicitly explained by 'a request listed by browser_network', which is the one real contribution.

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

Purpose4/5

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

States a specific verb and resource (get the response body of a request) and names its data source, browser_network, so an agent knows it must run that sibling first. The parenthetical 'e.g. an API's JSON' clarifies the typical payload. It stops short of an explicit contrast with siblings like browser_extract, but the purpose itself is unambiguous.

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?

The phrase 'of a request listed by browser_network' establishes a concrete prerequisite and ordering: list requests first, then fetch a body by ID. It does not state when to prefer this over browser_extract or browser_get_content, nor what to do if the body is unavailable, so the guidance is clear but not complete.

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