Skip to main content
Glama

spotlight

Idempotent

Apply cinematic highlight or focus effects around elements to draw viewer attention during video recording.

Instructions

[Cinematic Engine - PHASE 2] Create cinematic spotlight/highlight effects.

Creates attention-grabbing visual effects around an element to draw viewer focus during video recording. Use during recording phase after start_recording().

IMPORTANT:

  • Always call clear_spotlight() before applying a new spotlight

  • Wait at least 2-3 seconds after spotlight for viewers to notice

  • Combine with annotate() for maximum impact

Args: selector: CSS selector for the element to spotlight style: Effect style: - "ring": Glowing pulsing border around element - "spotlight": Dims page except element (cinematic focus) - "focus": Both ring and spotlight combined (MAXIMUM IMPACT) color: Highlight color (hex or CSS color, default blue #3b82f6) pulse_ms: Pulse animation duration in ms (default 1500) dim_opacity: Spotlight dimness 0.0-1.0 (default 0.5, higher = darker)

Returns: {"success": True, "data": {"style": "ring", "selector": "..."}}

Example: # Ring highlight with annotation spotlight(selector="button.cta", style="ring", color="#3b82f6") annotate("Click here!", position="above", style="dark") wait(3000) # Let viewers see it clear_spotlight() clear_annotations()

# Dramatic focus effect (ring + dim)
spotlight(selector="#hero", style="focus", dim_opacity=0.7)
wait(3000)
clear_spotlight()

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": {
      "selector": "<selector>"
    },
    "name": "spotlight"
  }
}

Input Schema

NameRequiredDescriptionDefault
colorNo#3b82f6
styleNoring
pulse_msNo
selectorYes
dim_opacityNo

Output Schema

NameRequiredDescriptionDefault
dataNo
hintsNo
messageNo
successNo
suggestionsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations declare non-read-only, idempotent, non-destructive, but say nothing about persistence or cleanup. The description fills that gap by stating the effect must be cleared before re-application, that overlays coexist with annotations, and that dim_opacity raises darkness — real behavioral context beyond the structured fields.

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?

Front-loaded with purpose, then important constraints, then args, returns, and worked examples. The examples are functional rather than filler, though headers like 'PHASE 2' and 'MAXIMUM IMPACT' add noise, and the Returns block duplicates the existing output schema.

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

Completeness5/5

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

For a 5-parameter visual-effect tool it covers purpose, timing, cleanup ordering, parameter meaning, and a realistic multi-tool workflow. With an output schema present, the extra Returns line is redundant but not a gap; nothing an agent needs to invoke it correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description carries the full burden, and it does: it explains selector, the three style values with distinct semantics (ring vs spotlight vs focus), color format and default, pulse_ms units and default, and the 0.0-1.0 range plus direction of dim_opacity.

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: 'Create cinematic spotlight/highlight effects' that draw viewer focus around an element. It also implicitly separates itself from annotate() by recommending combination rather than replacement, though it never distinguishes itself from the sibling 'highlight' or 'focus' tools.

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?

Gives a clear usage window ('Use during recording phase after start_recording()') and an explicit prerequisite ('Always call clear_spotlight() before applying a new spotlight'). It does not say when to prefer this over the sibling highlight/focus/annotate tools, so it falls short of full alternative routing.

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