Skip to main content
Glama

console.export

Read-only

Export browser console logs from a chosen time window to an NDJSON artifact for debugging, archiving, or analysis.

Instructions

Write a time slice of the console to an NDJSON artifact. The answer to "50,000 log lines".

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": "console.export"
  }
}

Input Schema

NameRequiredDescriptionDefault
levelNo
sinceNoRelative ("5m", "90s") or absolute ISO timestamp.
untilNoUpper bound of the time window.
searchNo
save_pathNo
target_idNoTarget handle (tgt_*). Omit for the active page.
browser_idNoBrowser handle (br_*). Omit to use the only running browser, or auto-launch one.
include_exceptionsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.1/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the safety profile is covered; the description contributes the output format (NDJSON) and the volume rationale. It omits what matters for a file-producing tool: where the artifact lands, whether save_path has a default, whether existing files are overwritten, and how the result is later retrieved.

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, front-loaded with the verb and output artifact, with no filler. The second sentence is punchy but slightly oblique as a usage hint, which keeps it just short of ideal.

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?

This is an 8-parameter tool with no output schema, and the description never says what the caller receives back — a path, an artifact handle, a size — nor how to read the resulting file. Combined with four undocumented parameters, the definition leaves too much unresolved for a tool of this complexity.

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?

Eight parameters at 50% schema coverage, and the description explains none of them. The schema documents since, until, target_id and browser_id, but level, search, save_path and include_exceptions are undocumented in both places, and the description does nothing to compensate for that gap.

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 and result: "Write a time slice of the console to an NDJSON artifact," which tells an agent it produces a file rather than returning log lines inline. It stops short of naming the contrasting sibling (console.query) explicitly, so the differentiation is inferable rather than stated.

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?

"The answer to '50,000 log lines'" implies the tool is for large-volume extraction where inline querying is impractical, which is a real usage signal. However, it never says when not to use it, nor names console.query or artifact.read as the alternative paths, so the agent must infer the routing rule.

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

Deploy Server

Other Tools