Skip to main content
Glama
Chrome DevTools Debug MCP Server

Chrome DevTools Debug MCP Server

by m4eba

get_websocket_frames

Retrieve sent and received WebSocket frames for a connection using its requestId, including connection state, to inspect or debug live message traffic.

Instructions

Get the frames (messages) of a WebSocket connection. The requestId comes from list_requests (entries with resourceType "WebSocket"). Returns the connection state plus sent/received frames. Requires network_enable to have been active when the connection opened. Use get_request_details on the same requestId for the handshake headers.

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": "get_websocket_frames"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoReturn only the most recent N frames after filtering
sinceNoOnly frames with a CDP timestamp greater than this (for incremental polling)
containsNoOnly frames whose payload contains this substring
targetIdNoOwning targetId. Optional; resolved automatically when omitted.
directionNoOnly frames in this direction
requestIdYesWebSocket connection requestId from list_requests

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.1

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations provided, the description carries the full disclosure burden and does reasonably well: it states the return shape ('connection state plus sent/received frames') and a critical capture-time precondition. It stops short of saying what actually happens when network_enable was not active (empty result vs. error), which matters for a tool whose data is often missing.

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?

Four short sentences, front-loaded with purpose, then data source, return shape, precondition, and related tool. No filler and nothing 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?

For a tool with no output schema, the description does supply the return shape and the capture prerequisite, which covers what an agent needs to call it correctly. It could go slightly further by sketching the frame fields (direction, timestamp, payload) that the limit/since/contains filters operate on.

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 100%, so the schema already documents all six parameters, including the limit/since/contains/direction filters and the requestId provenance. The description only repeats the requestId origin already stated in the schema, adding no syntax or format meaning beyond it — baseline 3 applies.

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?

The description opens with a specific verb and resource: 'Get the frames (messages) of a WebSocket connection,' and immediately disambiguates from siblings by assigning handshake headers to get_request_details and requestId lookup to list_requests. An agent can distinguish this tool from get_request_details without opening either schema.

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?

It states a hard prerequisite ('Requires network_enable to have been active when the connection opened') and routes the agent to list_requests for the requestId and to get_request_details for handshake headers. It does not explicitly say when this tool should be skipped in favor of a sibling for the same data, so it falls just short of a 5.

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

Deploy Server

Other Tools