Skip to main content
Glama

browser_paint_damage

Detect elements whose rendered pixels or DOM subtrees changed after actions without screenshot diffing. Mark a reference point, then retrieve changed elements since that mark.

Instructions

Track and detect elements whose rendered pixels or DOM subtrees changed after actions, without expensive screenshot diffing.

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": "browser_paint_damage"
  }
}

Input Schema

NameRequiredDescriptionDefault
actionNoAction to perform: 'mark' to set a reference point, or 'get' to retrieve changed elements since mark.get
exclude_refNoOptional @ref to exclude from the report (such as the button that was just clicked).
exclude_selectorNoOptional CSS selector to exclude from the report.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.13.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose a meaningful trait: detection works off rendered pixels or DOM subtrees and avoids 'expensive screenshot diffing', which tells the agent about cost/mechanism. It does not say whether the tool is stateful across calls (a mark reference must persist), what happens if 'get' is called without a prior mark, or what the report contains.

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?

A single front-loaded sentence with no filler; the capability statement comes first and the screenshot-diffing contrast follows as a justified qualifier.

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

Completeness3/5

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

The tool is stateful (mark/get) and has no output schema and no annotations, so the description ideally would explain the workflow ordering and what the returned change report looks like. The schema covers the action semantics well, leaving this adequate but with clear gaps around state and return values.

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% — action, exclude_ref, and exclude_selector are all documented in the schema, including the mark/get enum semantics. The description adds no parameter-level meaning beyond that, so 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?

The description names a specific capability — detecting elements whose rendered pixels or DOM subtrees changed after actions — and implicitly contrasts it with screenshot diffing, which is a sibling-adjacent capability (browser_compare_screenshots, browser_diff_snapshot). It is clear what the tool does, though it never names the alternative tool directly.

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?

Use is implied by 'after actions': mark a reference, act, then get the report. However, the explicit two-phase workflow and the mark/get sequencing live in the schema's action enum description, not here, and no when-not guidance or named alternative is given.

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