Skip to main content
Glama

camera_zoom

Idempotent

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

NameRequiredDescriptionDefault
levelNo
selectorYes
duration_msNo

Output Schema

NameRequiredDescriptionDefault
dataNo
hintsNo
messageNo
successNo
suggestionsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4.9/5.0
Behavior5/5

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

Annotations only say it is non-read-only and idempotent; the description goes further by disclosing that it visually scales the whole document and centers the target, and that the animation outlives the call so a wait longer than duration_ms is required. That timing side effect is the key behavioral fact an agent could not infer from 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 the purpose, then a mechanism note, a warning, args, returns, and a worked example — a well-ordered structure. The '[Cinematic Engine - PHASE 2]' tag and the Returns block (an output schema already exists) are mildly redundant, but the example earns its space by showing the required wait pattern.

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 3-parameter camera tool with an output schema, everything needed is present: prerequisite tool, parameter meanings, timing requirement, and a full call sequence. There is no ambiguity about how to invoke it or what to do next.

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 coverage is 0% (titles only), so the description carries the full burden and delivers: selector is the CSS selector to zoom into, level is explained with concrete anchors (1.5 = 50%, 2.0 = 100% zoom), and duration_ms is the animation duration. The example reinforces the units and defaults.

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?

States a specific verb and resource ('Zoom the camera to focus on an element') plus the mechanism ('Uses CSS transforms to scale the document and center the target element'). An agent can immediately distinguish this from camera_pan and camera_reset, the latter of which is shown as the follow-up step.

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

Usage Guidelines5/5

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

Explicitly scopes usage: 'Use during recording after start_recording()' gives the prerequisite, and the example chain (camera_zoom -> wait -> camera_reset -> wait) shows sequencing with a named sibling. The IMPORTANT note tells the agent to wait longer than duration_ms, covering the main misuse case.

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