Skip to main content
Glama
Antigravity in Chrome MCP Server

Antigravity in Chrome MCP Server

by sxqib

read_console_messages

Retrieve browser console logs, warnings, and uncaught runtime errors from a tab to diagnose page issues. Filter by regex, limit results, or return only errors.

Instructions

Read browser console logs, warnings, and uncaught runtime errors captured on the tab.

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

Input Schema

NameRequiredDescriptionDefault
clearNoIf true, clear the captured log buffer after reading.
limitNoMaximum number of messages to return (default 100).
tabIdNoTarget tab ID (defaults to active managed tab).
patternNoOptional regex string to filter log messages.
onlyErrorsNoIf true, return only console errors and uncaught exceptions.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations provided, the description carries the full behavioral burden. It does disclose the meaningful capture model ('captured on the tab'), implying a passive accumulated buffer rather than a live stream, but says nothing about whether it waits for messages, whether it requires an attached/managed tab, or what happens when the buffer is empty or cleared.

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?

A single sentence, front-loaded with the verb and resource and with zero filler. Every clause (logs, warnings, uncaught errors, captured on the tab) contributes distinct scope information.

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?

There is no output schema and no annotations, so the description should ideally describe the shape of returned messages and the safety/mutation profile (notably that clear=true mutates state by emptying the buffer). It covers what is read but leaves the return format and side effects unaddressed, which is a real gap for a five-parameter, un-annotated 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?

Schema description coverage is 100% and all five optional parameters (clear, limit, tabId, pattern, onlyErrors) are documented in the schema itself. The description adds no extra semantics such as regex flavor, default ordering, or whether 'pattern' applies to error text as well as messages, so baseline 3 applies.

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?

States a specific verb ('Read') and a specific resource ('browser console logs, warnings, and uncaught runtime errors'), with a scope note that they are 'captured on the tab.' This clearly separates it from read_network_requests or read_page by resource type, though it never names a sibling explicitly.

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 infers this is the tool for diagnosing console output and runtime errors. There is no explicit when-to-use, when-not-to-use, or pointer to an alternative such as read_network_requests for network failures.

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