Skip to main content
Glama

Get console events

get_console

Read or wait for browser console events, filter by level or text, and coordinate a user action via start/finish capture windows.

Instructions

Read console events or coordinate a user action without client forms. For collaboration: call capture_action=start, retain captureId, ask the user to reproduce the event in chat, then call finish with capture_id and filters.

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": "get_console"
  }
}

Input Schema

NameRequiredDescriptionDefault
clearNoClear captured entries before reading or waiting
levelNo
limitNo
page_idNoTarget page id from get_pages; omit to use the selected page
capture_idNoCapture id returned by capture_action=start; required for finish
timeout_msNoInteractive wait timeout
text_containsNoOnly match messages containing this text
wait_for_nextNoWait for a new matching event instead of returning buffered entries
capture_actionNoUse start then finish for a user-coordinated capture windowread

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations only supply readOnlyHint=false, so the description carries most of the burden. It usefully discloses the stateful capture workflow (start, retain captureId, finish with filters), which explains why the tool is not read-only, but it never states that clear=true destroys buffered entries, how timeout_ms affects the call, or what a read returns.

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?

Two sentences, capability first and workflow second, with no filler. The collaboration sequence is dense but ordered correctly, so the agent can follow it linearly.

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?

For a 9-parameter tool with no output schema and a non-read-only annotation, the definition covers the capture lifecycle but omits the default read behavior, the effect of clear, timeout semantics, and any sense of what entries are returned. It is workable but leaves real gaps an agent would hit on first use.

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 coverage is 78%, so the schema already documents capture_action, capture_id, wait_for_next, clear, and timeout_ms, and the description largely restates that start/finish contract. It adds the human-in-the-loop step ('ask the user to reproduce the event in chat') but never maps 'filters' to level, limit, or text_contains, so the three undocumented parameters are not rescued.

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?

The description opens with a specific verb+resource ('Read console events') and adds a second distinct capability ('coordinate a user action without client forms'). It does not differentiate from siblings such as get_network or evaluate, but the resource is unambiguous enough that an agent can identify the tool from its name plus first clause.

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?

It gives an explicit trigger for the collaboration mode ('For collaboration'), spelled out as a three-step sequence. The default read path is left implicit and there are no stated when-not conditions or exclusions relative to sibling inspection tools, which keeps it short of a 5.

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