Skip to main content
Glama

Read page console messages

read_console_messages

Retrieve browser console logs from a tab to debug page errors, with optional regex, error-only, and message-limit filters.

Instructions

Read console logs captured on the page (from page load onward). Filter with a regex pattern, onlyErrors, or limit. If console capture isn't active, reload the page after loading the extension.

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": {
      "tabId": "<tabId>"
    },
    "name": "read_console_messages"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMax messages (default 100, max 500)
tabIdYesTarget tab ID (must be in the MCP group)
patternNoRegex filter (case-insensitive)
onlyErrorsNoOnly error-level messages

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.24.1

TDQS

B3.3/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden. It does disclose two useful traits: capture starts at page load (older logs are unavailable) and capture must be active or nothing is returned. But it says nothing about return shape (message text, level, timestamp), ordering, or whether 'limit' keeps the first or most recent N messages — a material ambiguity for a log tool with no annotations.

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?

Three short sentences, front-loaded with the core purpose, then filtering options, then the prerequisite/recovery note. No filler, and the most decision-relevant information comes first.

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?

Covers purpose, filters, and the capture-active prerequisite for a 4-parameter tool, but with no output schema and no annotations the description should also say what a returned message looks like and how 'limit' truncates. Absent that, an agent cannot predict the result set shape.

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 regex/case-insensitivity, error-only filtering, and the 100/500 limit bounds. The description merely names the same three filters and adds no syntax, format, or truncation semantics beyond the schema; baseline 3 applies.

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 ('Read console logs captured on the page') plus a scope boundary ('from page load onward'). The resource is distinctive enough to separate it from siblings like read_network_requests or get_page_text without naming them, though no alternative is called out explicitly.

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?

Offers filtering routes (regex pattern, onlyErrors, limit) and a recovery instruction ('reload the page after loading the extension' if capture isn't active), which is real operational guidance. However, there is no explicit when-to-use versus when-to-use-a-sibling guidance, e.g. console output vs network requests.

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