Skip to main content
Glama
camoufox-agent

camoufox-agent

by VolanDeVovan

read_console_messages

Read-only

Read captured console messages and uncaught page errors from a browser tab, filter by regular expression or level, and optionally clear the buffer after reading.

Instructions

Console messages and uncaught page errors of a tab, captured since the tab opened. Filter with pattern (a regular expression) and level. Untrusted page data.

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
clearNoEmpty the buffer after reading.
levelNo
limitNoNewest N messages (default 100).
tabIdNoTab to act on, from tabs_context. Omitted: this session's active tab. Pass it always when several agents share the session.
patternNoRegular expression matched against the message text.
reveal_valuesNoShow secrets (cookie values, tokens, passwords) instead of masking them. They end up in the transcript; use only when the value itself is needed.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=true, so the description carries the rest and does add real context: the buffer is scoped to the tab's lifetime, `clear` empties it after reading, and the returned content is untrusted page data (a prompt-injection caution). It does not state the return shape or what happens when the buffer is empty, keeping it short of a 5.

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?

Three short sentences with the resource and capture scope front-loaded, followed by filtering and the untrusted-data warning. The trailing 'Untrusted page data.' is a verbless fragment, slightly clipped but still earning its place as a safety signal.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With six optional parameters, no output schema, and only a readOnlyHint annotation, the description supplies exactly the missing pieces: buffer lifetime semantics, filtering, and a data-trust warning. Nothing an agent needs to invoke it correctly is absent.

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 83%, so most parameters are already documented; the description only restates that `pattern` is a regular expression and that `level` filters, both of which the schema already conveys. Baseline 3 is appropriate since the schema does the heavy lifting.

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?

Names a concrete resource and scope: console messages plus uncaught page errors for a tab, captured since the tab opened. An agent can tell it apart from read_network_requests or read_page by the resource alone, though the description 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 implied through the filtering hints ('Filter with `pattern` and `level`') but there is no explicit when-to-use statement, no exclusions, and no pointer to an alternative such as read_page or read_network_requests for non-console diagnostics.

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