spotlight
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
| Name | Required | Description | Default |
|---|---|---|---|
| color | No | #3b82f6 | |
| style | No | ring | |
| pulse_ms | No | ||
| selector | Yes | ||
| dim_opacity | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| hints | No | ||
| message | No | ||
| success | No | ||
| suggestions | No |