camera_zoom
Zooms the camera onto a CSS-selected element and centers it to create a Ken Burns effect during screen recording.
Instructions
[Cinematic Engine - PHASE 2] Zoom the camera to focus on an element.
Uses CSS transforms to scale the document and center the target element, creating a "Ken Burns" zoom effect. Use during recording after start_recording().
IMPORTANT: Always wait() longer than duration_ms after calling!
Args: selector: CSS selector for the element to zoom into level: Zoom level (1.0 = normal, 1.5 = 50% zoom, 2.0 = 100% zoom) duration_ms: Animation duration in milliseconds
Returns: {"success": True, "data": {"level": 1.5, "target": "selector"}}
Example: camera_zoom(selector="h1", level=1.5, duration_ms=1000) wait(1500) # Wait longer than animation! camera_reset(duration_ms=800) wait(1000)
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": "camera_zoom"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| level | No | ||
| selector | Yes | ||
| duration_ms | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| hints | No | ||
| message | No | ||
| success | No | ||
| suggestions | No |