Skip to main content
Glama
vKongv

Chrome Browser Control

by vKongv

Console logs

console_logs

Retrieve console logs from a Chrome tab, optionally filtering by level and limit. Capture logs after content script injection for debugging.

Instructions

Return bounded console logs captured after the content script was injected in the target tab.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNo
tabIdNoOptional Chrome tab id. Defaults to the claimed session tab, then the active tab.
levelsNo
documentIdNoExact frame document id returned by list_frames. Omit to target the current top document.
sessionTabIdNoOptional claimed tab session id returned by claim_tab.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

C2.8/5.0
Behavior2/5

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

With no annotations, the description carries the full burden of behavioral disclosure. It discloses only that logs are 'bounded' and captured after injection, but does not state whether reading logs clears them, what the bound means, how filtering works, or what happens when no logs exist. There is no annotation contradiction because none are provided.

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?

The description is a single, focused sentence with no filler. It front-loads the core action and the additional injection-context clause earns its place.

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

Completeness2/5

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

Given no output schema and no annotations, the description is too sparse for an agent to invoke the tool confidently. Missing details include the shape of returned log entries, how 'bounded' is determined, accepted levels values, and any stateful effects of calling the tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is only 60%; the 'limit' and 'levels' parameters have no schema descriptions, and the tool description does not clarify them. 'Bounded' weakly hints at the limit parameter but does not explain default or maximum behavior, and valid values for 'levels' are entirely left to inference.

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 clearly states a specific verb and resource: 'Return bounded console logs.' The temporal scope ('captured after the content script was injected in the target tab') adds useful specificity. However, it does not explicitly differentiate from sibling inspection tools, though none are log-specific.

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

Usage Guidelines2/5

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

No guidance is given on when to use this tool versus alternatives, nor are any exclusions or sibling references provided. The only contextual hint is the mention of content-script injection and target tab, which implies a use case but does not make it explicit.

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