Skip to main content
Glama

browser_get_console

Retrieve browser console messages to uncover stack traces, debug URLs, and CSP violations invisible to the proxy. Filter by level and clear the buffer after reading.

Instructions

Read JavaScript console output from the browser. Returns data the PROXY CANNOT SEE.

PREREQUISITE: browser_open and browser_go must have been called first.

Console messages often contain:

  • Stack traces that reveal internal file paths and function names

  • Debug messages with internal API URLs or configuration

  • Error messages that indicate vulnerability surfaces

  • Content Security Policy (CSP) violation reports

Args: level: Filter by message level — "all" (default), "error", or "warning" clear: Clear the console buffer after reading (default false). Set true to avoid re-reading old messages. session_name: Browser session to use (default: "default")

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
clearNo
levelNoall
tab_idNo
session_nameNodefault

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

With no annotations, the description discloses important behavioral traits: the data is not visible to the proxy, console messages can include stack traces/internal URLs, and the 'clear' parameter controls buffer clearing. It also notes the prerequisite. It doesn't discuss output format or side effects beyond clear, but provides strong contextual detail.

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?

Well-structured with a bold lead sentence, a value proposition, prerequisite callout, examples of console message types, and an Args section. Each section adds information without redundancy, making it appropriately sized and front-loaded.

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?

Covers purpose, prerequisites, parameter semantics (except tab_id), and use-case context. The presence of an output schema presumably covers return format. Missing tab_id documentation is the main gap, but overall this is a comprehensive description.

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 description explains 'level' with allowed values, 'clear' with its side effect, and 'session_name' default. However, it completely omits 'tab_id', which appears in the schema. Since schema description coverage is 0%, the description must compensate, and it does for 3 of 4 parameters with one notable gap.

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 clearly states 'Read JavaScript console output from the browser' with a specific verb and resource. It also differentiates from proxy/network tools by noting 'Returns data the PROXY CANNOT SEE,' which distinguishes it from sibling traffic-related tools.

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?

Provides explicit preconditions (browser_open and browser_go must be called first) and frames the tool's unique value proposition (data the proxy cannot see). It implies when to use it but does not explicitly name alternative tools or 'when not to use' scenarios, so it lacks a dedicated exclusion clause.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/BobongKu/nodriver-proxy-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server