Skip to main content
Glama
Playwright DevTools MCP Server

Playwright DevTools MCP Server

by ariangibson

console_get_logs

Retrieve and filter browser console logs and errors to diagnose web app issues by type, timestamp, or keyword.

Instructions

Collect console logs and errors from the browser for debugging analysis

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "contextId": "<contextId>"
    },
    "name": "console_get_logs"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum number of logs to return
sinceNoOnly return logs after this timestamp (milliseconds)
typesNoFilter by log types
containsNoFilter logs containing this text (case insensitive)
contextIdYesBrowser context ID from browser_launch

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden, yet it says nothing about whether the read is side-effect free, whether logs are drained or cleared after collection, whether it waits for new events, or how buffering/pagination behaves. The default type filter and default limit of 50 exist only in the schema and are characterized there as neutral defaults without explaining the practical consequence (errors and warnings only, by default).

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?

A single front-loaded sentence with no filler or redundancy; the resource being read is stated immediately. It is efficiently written, though the terseness is part of why behavioral and usage detail is absent elsewhere.

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?

For a five-parameter tool with no annotations and no output schema, one sentence is not enough: the agent receives no information about result shape (log entry fields), ordering, buffer limits, or whether collection clears state. The complexity of the tool versus the thin description leaves meaningful gaps an agent would need to resolve by trial.

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%, so all five parameters, including their defaults and the enum values for 'types', are already documented in the input schema. The description adds no additional meaning about how filtering parameters interact or in what order results are returned, which is the baseline expectation when 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?

The description gives a specific verb ('Collect') and resource ('console logs and errors from the browser'), which clearly separates it from sibling tools like network_get_requests or storage_get_cookies that read different data sources. It does not explicitly contrast with console_clear_logs or console_evaluate_javascript, so it stops short of full sibling differentiation.

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?

'for debugging analysis' names a broad motivation but gives no actionable when-to-use criteria, no prerequisites beyond what the schema lists, and no exclusions (e.g., that this does not clear logs or that console_clear_logs should be used instead). The agent must infer when this tool is preferable to the other console_* siblings.

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