Skip to main content
Glama
andresolbach

nodriver-mcp-server

Enable console collection

enable_console_collection
Idempotent

Starts capturing console output on the current page so you can later retrieve messages. Enable it before requesting console data; opt-in design avoids triggering anti-bot detection until needed.

Instructions

Start capturing console output on the current page.

Call this before list_console_messages or get_console_message — neither returns anything until collection is on. Network capture, by contrast, is always on and needs no equivalent call.

This is opt-in rather than automatic because it enables the CDP Runtime domain, which some anti-bot scripts probe for to detect an attached debugger. Leave it off while stealth matters, and use disable_console_collection when you are done debugging.

Applies per page: a new tab needs its own call.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
browserNoWhich browser to act on. Each name is an independent Chrome, created on first use. Omit for the shared default; parallel agents each need their own name.default

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2.5.0
    • addedInput schema / properties / browser
      Added value: +{
      +  "default": "default",
      +  "description": "Which browser to act on. Each name is an independent Chrome, created on first use. Omit for the shared default; parallel agents each need their own name.",
      +  "type": "string"
      +}
  2. First observedv1.7.2

TDQS

A4.3/5.0
Behavior4/5

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

Beyond the annotations, the description discloses the CDP Runtime domain and the anti-bot detection risk, explaining the opt-in design. It also clarifies the per-page scope, which is behavioral context not covered by annotations. It does not repeat idempotency (already in annotations) and avoids contradicting them.

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?

Four sentences, each adding distinct value: purpose, dependency, rationale, and scope. The most important info (what it does) is front-loaded. Slightly longer than strictly necessary, but every sentence earns its place.

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?

Together with the output schema (which removes the need to describe return values) and annotations (idempotency), the description covers prerequisites, when to use, and per-page behavior. It could mention statefulness (that it remains on until disabled) but that is implied by 'when you are done debugging.' Overall complete for this tool.

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?

The schema description covers 100% of the single 'browser' parameter, including its meaning and default behavior. The tool description adds no extra parameter guidance, which is acceptable given full schema coverage. Baseline 3 is appropriate.

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 ('Start capturing') and resource ('console output on the current page'), making the core purpose unmistakable. It also distinguishes itself from related tools by noting that list_console_messages and get_console_message depend on this call, and by contrasting with network capture which is always on.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly instructs when to use this tool: before any console-reading tool, and when stealth is not a concern. Also provides when-not-to-use: leave it off while stealth matters, and use disable_console_collection when done. Names the alternatives (list_console_messages, get_console_message, disable_console_collection) and contrasts with network capture which needs no equivalent call.

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