Skip to main content
Glama

browser_logs

Read buffered console, network, and navigation logs from an attached browser tab to inspect errors and requests, filter evidence, and page through retained events.

Instructions

Read buffered console, network or navigation evidence since claim, even if the page is blank. For API discovery use network view=requests with resource_types=["XHR","Fetch"]; summaries correlate retained events by session/request/hop without bodies. Use view=events and that identity for details. Filters affect reads only. Continue next_seq for the same kind/view/filters; restart at 0 when changing them. data_loss means evicted evidence cannot be recovered.

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": {
      "tab_handle": "<tab_handle>",
      "kind": "<kind>"
    },
    "name": "browser_logs"
  }
}

Input Schema

NameRequiredDescriptionDefault
hopNo
kindYes
viewNoNetwork only; default events. Requests view returns one compact summary per request, updated when later events arrive; incomplete retained history is possible.
eventNoNetwork events view only.
levelNoOnly valid for kind=console.
limitNo
methodNoNetwork only: case-insensitive HTTP method.
statusNoNetwork only: exact HTTP response status; events without status do not match.
captureNoNetwork only: opt in before XHR/fetch for bounded headers/bodies, with credential headers and named secrets redacted; unavailable bodies are explicit.
after_seqNo
max_charsNo
request_idNo
session_idNoNetwork identity; null selects the main debugger session.
tab_handleYes
url_originNoNetwork only: exact HTTP(S) origin, e.g. https://jobs.example.com.
url_containsNoOnly valid for kind=network.
resource_typesNoNetwork only: exact CDP types, e.g. ["XHR","Fetch"].

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed9 schema fields changedv0.34.0
    • addedInput schema / properties / event
      Added value: +{
      +  "description": "Network events view only.",
      +  "enum": [
      +    "request",
      +    "redirect",
      +    "response",
      +    "finished",
      +    "failed",
      +    "cache",
      +    "body"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / hop
      Added value: +{
      +  "maximum": 9007199254740991,
      +  "minimum": 0,
      +  "type": "integer"
      +}
    • addedInput schema / properties / method
      Added value: +{
      +  "description": "Network only: case-insensitive HTTP method.",
      +  "pattern": "^[A-Za-z]{1,50}$",
      +  "type": "string"
      +}
    • addedInput schema / properties / request_id
      Added value: +{
      +  "maxLength": 200,
      +  "minLength": 1,
      +  "type": "string"
      +}
    • addedInput schema / properties / resource_types
      Added value: +{
      +  "description": "Network only: exact CDP types, e.g. [\"XHR\",\"Fetch\"].",
      +  "items": {
      +    "maxLength": 50,
      +    "minLength": 1,
      +    "type": "string"
      +  },
      +  "maxItems": 20,
      +  "minItems": 1,
      +  "type": "array"
      +}
    • addedInput schema / properties / session_id
      Added value: +{
      +  "anyOf": [
      +    {
      +      "maxLength": 200,
      +      "minLength": 1,
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "Network identity; null selects the main debugger session."
      +}
    • addedInput schema / properties / status
      Added value: +{
      +  "description": "Network only: exact HTTP response status; events without status do not match.",
      +  "maximum": 599,
      +  "minimum": 100,
      +  "type": "integer"
      +}
    • addedInput schema / properties / url_origin
      Added value: +{
      +  "description": "Network only: exact HTTP(S) origin, e.g. https://jobs.example.com.",
      +  "maxLength": 2000,
      +  "minLength": 1,
      +  "type": "string"
      +}
    • addedInput schema / properties / view
      Added value: +{
      +  "description": "Network only; default events. Requests view returns one compact summary per request, updated when later events arrive; incomplete retained history is possible.",
      +  "enum": [
      +    "events",
      +    "requests"
      +  ],
      +  "type": "string"
      +}
  2. Changed1 schema field changedv0.28.2
    • changedInput schema / properties / kind / enum
      Previous value: -[
      -  "console",
      -  "network"
      -]New value: +[
      +  "console",
      +  "network",
      +  "navigation"
      +]
  3. First observedv0.24.0

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does substantial work: it discloses that evidence is buffered since claim, that capture is an explicit opt-in made before XHR/fetch with credential headers and named secrets redacted, that retained history may be incomplete, and that data_loss means evicted evidence is unrecoverable. The remaining gap is that it never plainly states this is a non-mutating read or whether reading consumes/advances state.

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

Conciseness4/5

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

Purpose is front-loaded in the first clause and every subsequent clause carries a distinct rule (view routing, filters, cursor, data loss) with no restatement of the title. The telegraphic semicolon-chained style makes a few statements brittle, notably 'Continue next_seq', which references an output field that is never introduced.

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?

For a 17-parameter tool with no output schema, the description never describes the response shape beyond alluding to summaries and a next_seq cursor, so the agent cannot tell what a result object contains or how to detect truncation. Pagination and the destructive data_loss condition are covered, but the return contract is left implicit.

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

Parameters4/5

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

Against 17 parameters at 59% schema coverage, the description adds real meaning: the events/requests view distinction and its staleness caveat, session/request/hop correlation, resource_types with a concrete example, and the cursor rule (continue next_seq, restart at 0 when kind/view/filters change) which the schema leaves entirely undocumented for after_seq. It does not clarify level, method, status, capture, or max_chars, but those already carry schema descriptions.

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?

The opening clause states a specific verb and resource set ('Read buffered console, network or navigation evidence since claim') and adds a distinguishing condition ('even if the page is blank') that separates it from page-content readers like browser_read_text or browser_screenshot. It never names a sibling tool, so the agent must infer routing from the kind enum rather than from explicit contrast.

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

Usage Guidelines3/5

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

Guidance is rich but entirely intra-tool: it tells you to use view=requests for API discovery, view=events plus identity for details, and to continue next_seq only for the same kind/view/filters. There is no statement of when to reach for this tool versus browser_evaluate, browser_fetch, or browser_discover, which is the harder routing decision for an agent.

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