Skip to main content
Glama

Add spotlight

snipaya_add_spotlight

Apply a spotlight by dimming everything outside a rectangle or ellipse to highlight a specific screenshot region, with adjustable darkness for all spotlights.

Instructions

Dim everything except "rect" (form rect or ellipse) to draw attention to it. dim (0 to 1) changes the user’s spotlight darkness setting for all spotlights.

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": {
      "rect": "<rect>"
    },
    "name": "snipaya_add_spotlight"
  }
}

Input Schema

NameRequiredDescriptionDefault
dimNo
formNorect
rectYesA rectangle (top-left corner plus size). Canvas units, or image pixels with relativeTo.
tabIdNoTarget tab id. Defaults to the active tab.
relativeToNoImage id from snipaya_get_canvas. When set, all coordinates in this call are pixels of that image as captured (the same pixels you see in snipaya_render of that image).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior4/5

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

Annotations declare non-readOnly, non-destructive, closed-world, so the safety profile is covered; the description adds a genuinely non-obvious behavior — that dim alters the user's global spotlight darkness setting affecting ALL spotlights, not just this one. It does not say what is returned (e.g., an item id needed for snipaya_update_items), which is the remaining gap.

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 tight sentences, effect first, parameter notes second — front-loaded with no filler. Minor awkwardness from nested quoting around "rect" and a slightly run-on second sentence.

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?

For a 5-param nested-object creation tool with no output schema, the description covers the dim side effect well but omits what the call produces (new item id) and any interaction with sibling tools like update_items/delete_items/undo. Adequate but leaves the agent guessing about the write result.

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 60% and the description clarifies the two most semantically loaded params: rect must be rect or ellipse form and dim (0-1) controls darkness globally. tabId and relativeTo are described only in the schema, and dim's range is already in the schema, so the description adds value but does not compensate for the coverage 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 concrete verb-effect and object: dim everything except a rect/ellipse to draw attention to it. That is specific enough to separate it from snipaya_redact, snipaya_add_magnifier and snipaya_add_callout, but it never names those alternatives, so differentiation is by inference 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?

"To draw attention to it" implies the use case, but there is no explicit when-to-use vs when-to-pick-something-else guidance (e.g., redact for hiding, magnifier for zooming), and no prerequisites such as needing a canvas or calling snipaya_get_canvas first. Usage must be inferred.

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