Skip to main content
Glama

Spotlight an element

qa_spotlight

Visually highlights a page element by qa_snapshot ref or CSS selector with a dim-and-outline overlay, so a human tester can see exactly what the agent refers to without modifying it.

Instructions

Visually highlight (dim + outline) an element on the page — target it by a qa_snapshot ref (preferred) or a CSS selector — so the human tester can see what the agent is referring to. A non-destructive overlay — it does not click, focus, or modify the element.

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

Input Schema

NameRequiredDescriptionDefault
refNoA ref from qa_snapshot (e.g. "e12") — preferred over selector
labelNoOptional caption shown on the highlight
tabIdNoTarget tab (from qa_tabs); omit for the active tab
selectorNoCSS selector of the element to spotlight

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.86.2

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it declares the tool is a 'non-destructive overlay' that does not click, focus, or modify. It omits what happens on an invalid/stale ref, whether the overlay persists or how it is cleared, and whether tab state changes — gaps that matter for an overlay tool.

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?

Two sentences, front-loaded with the action and its visual effect, followed by the safety guarantee. No filler wording.

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 simple 4-param, all-optional, no-output tool, the description covers purpose, targeting, safety, and audience. It falls slightly short on error behavior for an invalid ref and on how the highlight is dismissed, which an agent would need to sequence calls.

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%, so ref, label, tabId, and selector are already documented in the schema, including 'preferred over selector'. The description's restatement of that preference adds only marginal meaning beyond the schema, so the baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description gives a specific verb and resource — 'visually highlight (dim + outline) an element on the page' — and immediately distinguishes it from interaction tools by stating it 'does not click, focus, or modify the element', which separates it from qa_click/qa_hover/qa_focus_* siblings.

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

Usage Guidelines4/5

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

It states the situation that selects this tool ('so the human tester can see what the agent is referring to') and the preferred targeting method ('ref from qa_snapshot (preferred) or a CSS selector'). It does not name an explicit alternative such as qa_annotate, so it stops short of full when-not guidance.

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