Skip to main content
Glama

page_console

Retrieve page console logs and errors captured at the protocol level, bypassing page-level hiding. Optionally clear the buffer after reading to filter repeated noise.

Instructions

DEBUG CORTEX: read the page's console output (log/warning/error) captured at the PROTOCOL level — the page cannot hide or patch it. Invisible debugger for AI agents: reproduce the bug, read what the page logged. Optionally filter noise by clearing after read. Returns JSON [{kind, text, url, line, ts}]. Auto-starts capture on first call.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
clearNoDrain the buffer after reading (default: keep entries).
page_idYes
session_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.7.3

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 burden of behavioral disclosure. It discloses that capture auto-starts on first call, that the page cannot hide or patch the output, that clearing is optional, and that the return is JSON with a specific shape. It does not mention whether the buffer is bounded or whether repeated calls drain or accumulate, but it covers the most important behavioral traits.

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?

The description is compact and front-loaded: it opens with the tool's purpose and key differentiator, then adds the workflow hint, return shape, and auto-start behavior. Every sentence earns its place, and the structure makes the most important information immediately visible.

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 read-only console inspection tool with no output schema, the description is largely complete: it states the return shape, the auto-start behavior, and the optional clear workflow. It does not specify buffer limits or whether entries are deduplicated, but those are minor gaps for the tool's apparent debugging use case.

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 33% (only 'clear' has a description). The description adds meaning for 'clear' by explaining it as 'filter noise by clearing after read', which aligns with the schema's 'Drain the buffer after reading'. However, it does not add meaning for session_id or page_id beyond what their names imply, and the description does not fully compensate for the two undocumented required parameters.

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 states a specific verb ('read'), a specific resource ('the page's console output'), and a distinctive scope ('captured at the PROTOCOL level — the page cannot hide or patch it'). It clearly distinguishes this from sibling tools like page_errors and page_network_read by emphasizing the console/log capture angle and the invisible-debugger framing.

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 description gives clear context for when to use the tool: when debugging by reproducing a bug and reading what the page logged. It also mentions an optional workflow step ('Optionally filter noise by clearing after read'). It does not explicitly name sibling alternatives or state when not to use it, but the protocol-level capture framing implies it is the go-to for console output that the page cannot hide.

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