Skip to main content
Glama

Console and errors

browser_console
Read-only

Retrieve console messages and page errors from the active browser tab, including uncaught exceptions, failed resources, and console output. Filter by error, warn, info, log, or debug levels.

Instructions

Console messages and page errors: uncaught exceptions with stacks, unhandled rejections, failed resources, and console output from when an agent started driving the tab. Filter by levels (error, warn, info, log, debug). Browser-internal messages (CSP, CORS) are not visible without the debugger.

Input Schema

NameRequiredDescriptionDefault
clearNoEmpty the log after reading.
limitNo
tabIdNo
levelsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.2

TDQS

B3.4/5.0
Behavior4/5

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

With readOnlyHint=true already covering safety, the description adds real context: the log scope ('from when an agent started driving the tab') and the important caveat that CSP/CORS internal messages are invisible without the debugger. It omits that the 'clear' parameter destroys prior output, which is a minor gap.

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?

Front-loaded with what the tool returns, then the filter and the caveat. Efficient overall, though the fragment 'Filter by levels' is slightly clipped.

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?

No output schema exists, and the description does a decent job describing the returned content, so that burden is met. However the undocumented limit/tabId parameters and the unstated side effect of 'clear' leave the definition only partially complete for a 4-parameter tool.

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

Parameters2/5

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

Schema coverage is only 25% (just 'clear' is documented). The description explains the level filter and its enum values, but that largely restates the schema enum, and it says nothing about 'limit' or 'tabId'. With low coverage it needed to compensate and does not.

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?

It names a specific resource and enumerates what is captured (uncaught exceptions with stacks, unhandled rejections, failed resources, console output). This clearly distinguishes it from browser_network or browser_inspect, though it never explicitly names those siblings.

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 only implied – an agent can infer this is for diagnosing errors when driving a tab. There is no explicit 'use this when' clause and no comparison against the other diagnostics siblings like browser_network, which leaves the agent to infer the boundary.

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