Skip to main content
Glama
Playwright DevTools MCP Server

Playwright DevTools MCP Server

by ariangibson

console_clear_logs

Clears stored console logs for a specified browser context, freeing memory and reducing log noise during debugging.

Instructions

Clear stored console logs for a browser context to free memory

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_clear_logs"
  }
}

Input Schema

NameRequiredDescriptionDefault
contextIdYesBrowser context ID from browser_launch

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A3.6/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full disclosure burden. It does convey that stored logs are destroyed and why, but says nothing about irreversibility, what happens with an invalid or already-closed contextId, or whether the operation is idempotent.

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?

One short sentence with the action, scope, and rationale front-loaded, and no redundant wording. Nothing could be removed without losing information.

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

Completeness4/5

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

For a single-parameter, non-returning mutation tool this is nearly complete: action, scope, and purpose are all covered. The remaining gap is the absence of any statement about the effect on subsequent console_get_logs calls or failure behavior for a stale contextId.

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 100% and the single contextId parameter is already documented as coming from browser_launch. The description adds only the reminder that the operation is scoped to a browser context, which is already implied by the schema; 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 and resource ("Clear stored console logs") plus the scope ("for a browser context"), which distinguishes it from console_get_logs without naming it. It also gives the motivation ("to free memory"), but stops short of explicitly naming the read counterpart as an alternative.

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 phrase "to free memory" implies the situation in which to call it, so usage is implied rather than stated. There is no explicit when-not guidance (e.g., don't call if you still need logs for debugging) and no named alternative such as console_get_logs.

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