Skip to main content
Glama

start_recording

Destructive

Start a browser video recording to capture automated interactions, cursor movement, and cinematic effects for demos, tutorials, or presentations.

Instructions

[Cinematic Engine - PHASE 2] Start video recording of the browser.

BEFORE RECORDING:

  1. generate_voiceover() - Know audio duration to pace your actions

  2. list_stock_music() + download_stock_music() - Have music ready

DURING RECORDING (after start_recording):

  1. set_presentation_mode(True) - Hide scrollbars

  2. goto() - Navigate to your page

  3. annotate() - Add floating callouts

  4. spotlight() - Highlight elements (ring/spotlight/focus)

  5. camera_zoom() / camera_pan() - Cinematic effects

  6. smooth_scroll() - Professional scrolling

  7. wait() - IMPORTANT: Wait > animation duration!

  8. clear_spotlight() / clear_annotations() before switching

AFTER RECORDING (use ffmpeg via shell - avoids MCP timeouts):

  1. Convert: ffmpeg -i recording.webm -c:v libx264 -preset fast output.mp4

  2. Add voice: ffmpeg -i output.mp4 -i voice.mp3 -c:v copy -c:a aac final.mp4

  3. Add music: ffmpeg -i final.mp4 -i music.mp3 -filter_complex "[1:a]volume=0.15[bg];[0:a][bg]amix" out.mp4 See check_environment() for full ffmpeg command examples!

Args: filename: Output filename (without extension) width: Video width in pixels (default 1920 for 1080p) height: Video height in pixels (default 1080 for 1080p)

Returns: {"success": True, "data": {"video_dir": "...", "viewport": {...}}}

Note: Recording uses Playwright's built-in video capture. The virtual cursor is automatically injected and will animate during interactions.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "start_recording"
  }
}

Input Schema

NameRequiredDescriptionDefault
widthNo
heightNo
filenameNorecording

Output Schema

NameRequiredDescriptionDefault
dataNo
hintsNo
messageNo
successNo
suggestionsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and non-idempotent, and the description adds real context beyond that: Playwright video capture, automatic virtual cursor injection, and the practical note that ffmpeg post-processing should run via shell to avoid MCP timeouts. It omits what 'destructive' concretely means here (e.g. overwriting an existing file at that filename) and whether a browser must already be running.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded and well-sectioned, but a large share of the text is a phase-wide checklist plus three full ffmpeg command lines that the description itself defers to check_environment(). Useful content, yet it duplicates material that belongs to other tools.

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

Completeness4/5

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

An output schema exists so return values need no elaboration, and the definition covers prerequisites, in-session requirements, and post-processing. Gaps remain around concurrent/duplicate recording, file overwrite behavior, and where output is written.

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

Parameters4/5

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

Schema coverage is 0%, so the description must compensate; it does, explaining that filename is the output name without extension and that width/height default to 1920x1080. It still leaves open where the file lands (only hinted at by video_dir in the return sample) and what container/extension results.

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 ('Start video recording of the browser') and situates it in a phase of the cinematic workflow, which distinguishes it cleanly from siblings like stop_recording and recording_status.

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 explicit before/during/after guidance naming concrete sibling tools (generate_voiceover, set_presentation_mode, smooth_scroll, clear_spotlight) and sequencing steps. It does not explicitly say when to stop or what happens on a duplicate start, so it stops short of full when/when-not coverage.

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