Skip to main content
Glama

read_console

Retrieve browser console logs, warnings, errors, uncaught exceptions, and rejected promises from pages, frames, and workers to debug web interactions and diagnose failures.

Instructions

What the page wrote to its console: logs, warnings, errors, uncaught exceptions and rejected promises, from the page, its frames and its workers, kept from the browser's start. Objects appear as [object Object]. Needs a browser engine from the next engine release on; an older one says so.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "read_console"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.2.1

TDQS

A4.2/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 well: it discloses the retention window ('kept from the browser's start'), the lossy serialization of objects as `[object Object]`, the multi-source aggregation across frames and workers, and a capability prerequisite that will cause the call to fail on older engines. It does not say whether the buffer is snapshot or streaming, or whether it is cleared between calls, which is the main remaining behavioral gap.

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 tight sentences with the payload described first and caveats (serialization, engine version) trailing. Every clause adds information: record types, sources, retention, and the version requirement — nothing is padded.

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 zero-parameter read with no output schema, the description covers content, provenance, retention, a serialization caveat, and a failure condition. The only meaningful omission is whether the result is a cumulative snapshot or an incremental read since the last call, which affects how an agent should poll it.

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?

The tool takes zero parameters, so there is nothing for the description to disambiguate beyond what the empty object schema already conveys; the baseline of 4 applies. The description correctly implies a no-argument, whole-buffer read rather than a filtered query.

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 precise verb-object statement of what is retrieved ('What the page wrote to its console') and enumerates the exact record types: logs, warnings, errors, uncaught exceptions and rejected promises. The scope is also bounded by source ('from the page, its frames and its workers'), which cleanly separates it from sibling reads such as read_text or read_page_variable.

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?

Usage is implied by the scope statement — an agent can infer this is the tool for console diagnostics rather than DOM or text inspection — but there is no explicit 'use this when' guidance, no statement of when a sibling like evaluate_script or read_text is preferable, and no note on whether repeated calls return the same accumulated buffer.

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