Skip to main content
Glama

browser-director

PyPI CI License: MIT

Pick this over Playwright MCP or Vercel agent-browser when the agent should both operate the site and direct a narrated demo of it — spotlight, zoom, voiceover, and cursor — from the same server.

The clip is browser-director on the English Wikipedia article for the Model Context Protocol: search, a ring spotlight on the opening paragraph, a zoom, then a focus spotlight on an infobox row. The mp4 is 50 seconds at 1280×720. The gif is a 13.6 second highlight. The voice is OpenAI tts-1-hd, voice nova, mixed with render_demo. MP4.

The GitHub repository is abhinav-nigam/browser-director.

Install

pip install browser-director
playwright install chromium

ffmpeg is required for render_demo. The Wikipedia demo’s voiceover uses generate_voiceover(provider="openai", voice="nova"), which reads OPENAI_API_KEY. get_audio_duration needs mutagen, so install the extra:

pip install 'browser-director[video]'

uvx browser-director mcp starts the server from PyPI without a separate install. That command was checked against 0.3.0: it speaks MCP over stdio and lists 71 tools.

Related MCP server: BrowserPilot

MCP config

Copy one of these. They all run uvx browser-director mcp. Add --allow-private to the args only when the agent should open localhost or another private address.

Claude Desktop

claude_desktop_config.json:

{
  "mcpServers": {
    "browser-director": {
      "command": "uvx",
      "args": ["browser-director", "mcp"]
    }
  }
}

Cursor

.cursor/mcp.json:

{
  "mcpServers": {
    "browser-director": {
      "command": "uvx",
      "args": ["browser-director", "mcp"]
    }
  }
}

Claude Code

claude mcp add browser-director -- uvx browser-director mcp

Recipes

Run these from a checkout after pip install -e . and playwright install chromium. Details are in examples/README.md.

Recipe

Scrape and summarise

Read example.com and print the title, first paragraph, and word count.

Form fill

Fill the public httpbin form and check the echo.

Screenshot

Save a viewport PNG of example.com.

Narrated demo

Wikipedia search, ring and focus spotlights, zoom, cursor, OpenAI nova (espeak-ng if OPENAI_API_KEY is unset), render_demo.

Comparison

Checked against the Playwright MCP README and the Vercel agent-browser README plus its video-recording notes, in November 2026. "Not documented" means I did not find it there. It is not a claim that the feature can never exist.

browser-director

Playwright MCP

Vercel agent-browser

Drive a browser (open, click, type, read)

Yes

Yes. Tool list in its README.

Yes. Rust CLI; snapshot returns refs such as @e1.

MCP server

Yes. uvx browser-director mcp.

Yes.

Yes. Docs say agent-browser mcp.

Save a video of the session

start_recording / stop_recording.

browser_start_video / browser_stop_video. Also chapter cards and action callouts.

record start / record stop to webm or mp4. --cursor draws a pointer.

Spotlight, camera zoom, and a voiceover on that same server

Yes. spotlight, camera_zoom, generate_voiceover or your own audio, then render_demo.

Not in the tool list I read.

Not in the recording docs I read.

Tools

The server registers 71 tools. CI checks this sentence against the registered list (<!-- tool-count: 71 -->).

They cover navigation, interaction, waits, extraction, assertions, and the demo tools: voiceover, recording, annotations, spotlight, camera, and render_demo. evaluate runs JavaScript in the page.

Security

Private-network access is off unless the server is started with --allow-private.

  • Schemes other than http and https are rejected, including file, javascript, and data.

  • Hostnames that resolve to loopback, link-local, or private ranges are rejected, including 169.254.169.254.

  • URLs with embedded usernames or passwords are rejected.

  • Screenshot and export paths have to stay inside the working directory.

evaluate is arbitrary JavaScript in the page's origin. Private-IP blocking does not make that safe.

License

MIT. See LICENSE. Author: Abhinav Nigam.

Available Tools

71 tools
annotateA
Idempotent

[Cinematic Engine - PHASE 2] Add a floating text annotation to the video.

Annotations are visual labels that appear on screen during recording to highlight features or explain what's happening. Use with spotlight() for maximum impact.

Args: text: The annotation text to display target: Optional CSS selector to position near (if omitted, uses center) position: Where to place relative to target: "above", "below", "left", "right" style: Visual style: "light" (white bg) or "dark" (dark bg) duration_ms: Auto-remove after ms (0 = permanent until clear_annotations)

Returns: {"success": True, "data": {"id": "...", "position": {...}}}

Inputs: text (required), style, target, position, +1 more. Returns: Envelope returned by browser-director tools. ``suggestions`` and ``hints`` are…

assert_textA
Read-onlyIdempotent

[Agent Browser] Check if an element contains expected text (substring match). Returns [PASS]/[FAIL] in message - never throws. Use for verification without breaking flow. Returns data.found (bool) and truncated data.text (max 500 chars with context).

Inputs: expected (required), selector (required). Returns: Envelope returned by browser-director tools. ``suggestions`` and ``hints`` are…

assert_urlA
Read-onlyIdempotent

[Agent Browser] Check if current URL contains a pattern (substring match). Returns [PASS]/[FAIL] in message - never throws. Use for verification. Returns data.match (bool) and data.url (current URL).

Inputs: pattern (required). Returns: Envelope returned by browser-director tools. ``suggestions`` and ``hints`` are…

assert_visibleA
Read-onlyIdempotent

[Agent Browser] Check if an element is visible (never throws). Returns {success: true, data: {visible: true/false}} with [PASS]/[FAIL] in message. Use for verification without breaking the flow on failure.

Inputs: selector (required). Returns: Envelope returned by browser-director tools. ``suggestions`` and ``hints`` are…

attrA
Read-onlyIdempotent

[Agent Browser] Get an HTML attribute value from an element. Common attributes: href, src, class, data-, aria-, disabled. Returns null if attribute doesn't exist. Use value() for input values.

Inputs: selector (required), attribute (required). Returns: Envelope returned by browser-director tools. ``suggestions`` and ``hints`` are…

backA
Destructive

[Agent Browser] Navigate back in browser history (like clicking Back button). Waits for page load. Use get_url() after to verify the destination.

Inputs: no named parameters. Returns: Envelope returned by browser-director tools. ``suggestions`` and ``hints`` are…

browser_statusA
Read-onlyIdempotent

[Agent Browser] Get browser capabilities and current state. Call this at the start of a session to understand available features. Returns: engine, mode, permissions, viewport, current URL, and readiness status.

Inputs: no named parameters. Returns: Envelope returned by browser-director tools. ``suggestions`` and ``hints`` are…

camera_panA
Idempotent

[Cinematic Engine] Pan the camera to center on an element.

Translates the document to center the target element without zooming, useful for following action across the page.

Args: selector: CSS selector for the element to center on duration_ms: Animation duration in milliseconds

Returns: {"success": True, "data": {"target": "selector"}}

Note: Call camera_reset() to return to normal view.

Inputs: selector (required), duration_ms. Returns: Envelope returned by browser-director tools. ``suggestions`` and ``hints`` are…

camera_resetA
Idempotent

[Cinematic Engine] Reset the camera to normal view.

Smoothly animates back to 1.0 scale with no translation, undoing any previous zoom or pan effects.

Args: duration_ms: Animation duration in milliseconds

Returns: {"success": True, "message": "Camera reset to normal view"}

Inputs: duration_ms. Returns: Envelope returned by browser-director tools. ``suggestions`` and ``hints`` are…

camera_zoomA
Idempotent

[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)

Inputs: selector (required), level, duration_ms. Returns: Envelope returned by browser-director tools. ``suggestions`` and ``hints`` are…

check_environmentA
Read-onlyIdempotent

[Cinematic Engine] Check environment and get workflow guide.

Verifies ffmpeg is installed and returns a complete workflow guide for creating professional videos. This is the entry point for the Cinematic Engine - always call first!

IMPORTANT: For post-production (Phase 3), use ffmpeg directly via shell commands. This avoids MCP timeout issues with long video operations.

Returns: { "success": True, "data": { "ffmpeg": True/False, "ffmpeg_path": "/usr/bin/ffmpeg", "ffmpeg_version": "ffmpeg version 6.0...", "openai_key": True/False, "elevenlabs_key": True/False, "jamendo_key": True/False, "errors": [...], "warnings": [...], "workflow": {...}, "ffmpeg_examples": {...}, "best_practices": [...] } }

Inputs: no named parameters. Returns: Envelope returned by browser-director tools. ``suggestions`` and ``hints`` are…

check_local_portA
Read-onlyIdempotent

[Agent Browser] Check if a local service is running and responding. Use this before attempting to navigate to local apps to verify they're up. Host is restricted to localhost/127.0.0.1 for security. Returns: port status, HTTP response code (if applicable), and service hints.

Inputs: port (required), host. Returns: Envelope returned by browser-director tools. ``suggestions`` and ``hints`` are…

clearA
Destructive

[Agent Browser] Clear both localStorage and sessionStorage for the current origin. Use to reset app state, log out, or test fresh-user experience. Does NOT clear cookies - use browser restart for full reset.

Inputs: no named parameters. Returns: Envelope returned by browser-director tools. ``suggestions`` and ``hints`` are…

clear_annotationsA
Idempotent

[Cinematic Engine] Remove all annotations from the page.

Returns: {"success": True, "message": "Cleared all annotations"}

Inputs: no named parameters. Returns: Envelope returned by browser-director tools. ``suggestions`` and ``hints`` are…

clear_mocksA
Idempotent

[Agent Browser] Clear all network mocks set by mock_network(). Call this to restore normal network behavior after testing.

Inputs: no named parameters. Returns: Envelope returned by browser-director tools. ``suggestions`` and ``hints`` are…

clear_spotlightB
Idempotent

[Cinematic Engine] Remove all spotlight/highlight effects from the page.

Returns: {"success": True, "message": "Cleared all spotlight effects"}

Inputs: no named parameters. Returns: Envelope returned by browser-director tools. ``suggestions`` and ``hints`` are…

clickA
Destructive

[Agent Browser] Click an element matching the selector. Supports Playwright selectors: css, text='...', xpath=..., :has-text(). Auto-waits for element to be visible and actionable. On failure, returns suggestions for similar visible elements.

Inputs: selector (required). Returns: Envelope returned by browser-director tools. ``suggestions`` and ``hints`` are…

click_nthA
Destructive

[Agent Browser] Click the nth element matching a selector (0-indexed). Use when multiple elements match and you need a specific one (e.g., 2nd button). Prefer this over click() when you get 'strict mode violation' errors.

Inputs: index (required), selector (required). Returns: Envelope returned by browser-director tools. ``suggestions`` and ``hints`` are…

consoleA
Read-onlyIdempotent

[Agent Browser] Get browser console log entries (errors, warnings, logs). Returns data.entries array with type, text, location. Max 200 entries retained. Use to debug JS errors or verify console.log output.

Inputs: no named parameters. Returns: Envelope returned by browser-director tools. ``suggestions`` and ``hints`` are…

cookiesA
Read-onlyIdempotent

[Agent Browser] Get all cookies for the current browser context. Returns data.cookies array with name, value, domain, path, expires, etc. Use to verify authentication state or inspect session data.

Inputs: no named parameters. Returns: Envelope returned by browser-director tools. ``suggestions`` and ``hints`` are…

countA
Read-onlyIdempotent

[Agent Browser] Count how many elements match a selector (includes hidden). Use to verify list lengths, check if elements exist, or before click_nth(). Returns data.count. For detailed element info, use find_elements().

Inputs: selector (required). Returns: Envelope returned by browser-director tools. ``suggestions`` and ``hints`` are…

dialogA
Destructive

[Agent Browser] Set up handler for JavaScript dialogs (alert, confirm, prompt). Call BEFORE the action that triggers the dialog. Actions: 'accept' or 'dismiss'. For window.prompt(), provide prompt_text to enter a response.

Inputs: action (required), prompt_text. Returns: Envelope returned by browser-director tools. ``suggestions`` and ``hints`` are…

download_stock_musicA
Destructive

[Cinematic Engine] Download a stock music track.

Downloads a music file from a URL (e.g., from list_stock_music results) to the local music cache directory.

Args: url: URL to download (download_url from list_stock_music) output: Output directory (default: "music_cache") filename: Output filename (default: derived from URL)

Returns: { "success": True, "data": { "path": "/path/to/downloaded/track.mp3", "size_bytes": 1234567 } }

Example: # Search for music result = list_stock_music(query="upbeat corporate") track = result["data"]["tracks"][0]

# Download it
download_stock_music(url=track["download_url"], filename="background.mp3")

# Use with ffmpeg in shell:
# ffmpeg -i video.mp4 -i music_cache/background.mp3 -filter_complex "[1:a]volume=0.15[bg];[0:a][bg]amix" -c:v copy output.mp4

Inputs: url (required), output, filename. Returns: Envelope returned by browser-director tools. ``suggestions`` and ``hints`` are…

evaluateA
Destructive

[Agent Browser] Execute JavaScript in the browser context and return the result. NOTE: This runs raw JS, NOT Playwright selectors. Use document.querySelector(), not text=. Useful for extracting data, checking state, or performing actions not covered by other tools.

Inputs: script (required). Returns: Envelope returned by browser-director tools. ``suggestions`` and ``hints`` are…

fillA
Destructive

[Agent Browser] Clear and fill a form field with the given value. Clears existing content before typing. Auto-waits for element. Use 'type' instead if you need to trigger key-by-key JS events.

Inputs: value (required), selector (required). Returns: Envelope returned by browser-director tools. ``suggestions`` and ``hints`` are…

find_elementsA
Read-onlyIdempotent

[Agent Browser] Find elements matching a selector and return details about each. Useful for debugging selector issues or understanding page structure. Returns: count, and details about each matching element (max 20). When include_hidden=False, only visible elements are counted and returned.

Inputs: selector (required), include_hidden. Returns: Envelope returned by browser-director tools. ``suggestions`` and ``hints`` are…

find_relativeA
Read-onlyIdempotent

[Agent Browser] Find an element spatially relative to an anchor element. Directions: 'above', 'below', 'left', 'right', 'nearest'. Use for finding data near labels (e.g., value below "Total Gain" label). Returns the closest matching element in that direction.

Note: 'anchor' uses Playwright selectors (text=, css, xpath). 'target' can be: - CSS selector (div, .class, #id) - 'text' - find nearest element with direct text content (recommended for values) - None/omitted - searches all elements (may find containers)

Inputs: anchor (required), direction (required), target, max_distance. Returns: Envelope returned by browser-director tools. ``suggestions`` and ``hints`` are…

focusA
Destructive

[Agent Browser] Set keyboard focus on an element without clicking. Use for form fields before typing, or to trigger focus-based JS events. Prefer fill() for inputs - it handles focus automatically.

Inputs: selector (required). Returns: Envelope returned by browser-director tools. ``suggestions`` and ``hints`` are…

forwardA
Destructive

[Agent Browser] Navigate forward in browser history (like clicking Forward button). Only works if you previously navigated back. Waits for page load.

Inputs: no named parameters. Returns: Envelope returned by browser-director tools. ``suggestions`` and ``hints`` are…

freeze_timeA
Idempotent

[Cinematic Engine] Freeze or restore the page's time.

Useful for demos where you want consistent timestamps, or to hide the fact that a recording took multiple takes.

Args: timestamp: ISO timestamp to freeze at (e.g., "2024-01-15T10:30:00") If None, restores normal time behavior

Returns: {"success": True, "data": {"frozen_at": "2024-01-15T10:30:00"}}

Inputs: timestamp. Returns: Envelope returned by browser-director tools. ``suggestions`` and ``hints`` are…

generate_voiceoverA
Destructive

[Cinematic Engine - PHASE 1] Generate voiceover audio from text using TTS.

IMPORTANT: Call this FIRST before recording! Audio duration determines video pacing. Use get_audio_duration() to know exact timing.

Workflow:

  1. generate_voiceover() -> get audio path

  2. get_audio_duration() -> know timing (e.g., 8 seconds)

  3. start_recording() -> record video paced to audio duration

  4. Use ffmpeg via shell -> combine in post-production (see check_environment())

Lazy-loads the TTS client on first call. Caches audio files to avoid redundant API costs during retakes.

Args: text: The text to convert to speech provider: TTS provider - "openai" (default) or "elevenlabs" voice: Voice ID - OpenAI: alloy, echo, fable, onyx, nova, shimmer ElevenLabs recommended voices (natural, expressive): - "H2JKG8QcEaH9iUMauArc" (Abhinav - warm, natural male) - "qr9D67rNgxf5xNgv46nx" (Tarun - expressive male) speed: Speech speed multiplier (0.25 to 4.0, default 1.0)

ElevenLabs voice modulation (for natural, less robotic speech):
stability: Voice consistency (0.0-1.0). Lower = more expressive/variable,
          higher = more consistent. Default 0.5. Try 0.3-0.4 for natural speech.
similarity_boost: Voice clarity (0.0-1.0). Higher = clearer but may sound
                 artificial. Default 0.75. Try 0.5-0.7 for natural speech.
style: Expressiveness/emotion (0.0-1.0). Higher = more emotive delivery.
      Default 0. Try 0.2-0.5 for engaging narration. Only works with v2 models.
use_speaker_boost: Enhance speaker clarity (bool). Default True.
                  Can help with clarity but may reduce naturalness.

Returns: {"success": True, "data": {"path": "/path/to/audio.mp3", "cached": bool}}

Example: # Natural, expressive voiceover vo = generate_voiceover( text="Welcome to our product demo.", provider="elevenlabs", voice="H2JKG8QcEaH9iUMauArc", # Abhinav - warm, natural stability=0.35, # More expressive similarity_boost=0.6, # Balanced clarity style=0.3 # Some emotion ) duration = get_audio_duration(vo["data"]["path"]) # Now record video paced to duration["data"]["duration_sec"]

Requires: pip install browser-director[video]

Inputs: text (required), speed, style, voice, +4 more. Returns: Envelope returned by browser-director tools. ``suggestions`` and ``hints`` are…

get_accessibility_treeA
Read-onlyIdempotent

[Agent Browser] Get the accessibility tree for the page or a specific element. Cleaner than DOM for understanding form structures and component purposes. Returns roles, names, values in a YAML-like hierarchical format. Optional selector to focus on a specific element.

Inputs: selector, max_length. Returns: Envelope returned by browser-director tools. ``suggestions`` and ``hints`` are…

get_agent_guideA
Read-onlyIdempotent

[Agent Browser] Get the AI agent quick reference guide. CALL THIS FIRST to understand how to use this browser automation tool effectively. Returns: selector syntax, tool categories, common patterns, and best practices. Optional: Pass section='selectors'|'tools'|'patterns'|'errors' for specific info.

Inputs: section. Returns: Envelope returned by browser-director tools. ``suggestions`` and ``hints`` are…

get_audio_durationA
Read-onlyIdempotent

[Cinematic Engine] Get the duration of an audio file in milliseconds.

Use this to calculate timing for video recording - know how long a voiceover is BEFORE starting to record, so you can pace movements.

Args: path: Absolute path to the audio file (MP3, WAV, etc.)

Returns: {"success": True, "data": {"duration_ms": 3500, "duration_sec": 3.5}}

Requires: pip install browser-director[video]

Inputs: path (required). Returns: Envelope returned by browser-director tools. ``suggestions`` and ``hints`` are…

get_page_markdownA
Read-onlyIdempotent

[Agent Browser] Get page content as a structured markdown-like text. Use this to READ page content (articles, results, dashboards) - not just interactive elements. Returns headings, paragraphs, lists, and data in a clean hierarchical format. Optional selector to focus on a specific section (CSS selector only, e.g. '#results', '.content'). max_length limits output size.

Inputs: selector, max_length. Returns: Envelope returned by browser-director tools. ``suggestions`` and ``hints`` are…

get_urlA
Read-onlyIdempotent

[Agent Browser] Get the current page URL. Returns {success: true, data: {url: '...'}}.

Inputs: no named parameters. Returns: Envelope returned by browser-director tools. ``suggestions`` and ``hints`` are…

get_video_durationB
Read-onlyIdempotent

[Cinematic Engine] Get the duration of a video file.

Uses ffprobe (part of ffmpeg) to extract video duration. This is a fast operation suitable for MCP tools.

Args: path: Path to the video file

Returns: {"success": True, "data": {"duration_sec": 30.5, "duration_ms": 30500}}

Inputs: path (required). Returns: Envelope returned by browser-director tools. ``suggestions`` and ``hints`` are…

gotoA
Destructive

[Agent Browser] Navigate to a URL. Validates URL for security (blocks private IPs by default). Waits for 'domcontentloaded' event. Use --allow-private flag to access localhost. Returns success/failure with the navigated URL.

Inputs: url (required). Returns: Envelope returned by browser-director tools. ``suggestions`` and ``hints`` are…

highlightA
Idempotent

[Agent Browser] Highlight an element with a colored border for visual debugging. Use before screenshot() to confirm you're targeting the correct element. Color can be any CSS color (red, blue, #ff0000, rgb(255,0,0), etc.). Duration in ms.

Inputs: selector (required), color, duration_ms. Returns: Envelope returned by browser-director tools. ``suggestions`` and ``hints`` are…

hoverA
Destructive

[Agent Browser] Hover the mouse over an element to trigger hover states. Use for dropdown menus, tooltips, or elements that appear on hover. Auto-waits for element to be visible.

Inputs: selector (required). Returns: Envelope returned by browser-director tools. ``suggestions`` and ``hints`` are…

list_stock_musicA
Read-onlyIdempotent

[Cinematic Engine] Search for royalty-free stock music from Jamendo.

Returns a list of tracks that can be downloaded with download_stock_music(). Requires either client_id parameter OR JAMENDO_CLIENT_ID environment variable. Get a free API key at: https://devportal.jamendo.com/

Args: query: Free text search (e.g., "upbeat corporate", "cinematic epic") tags: Music tags/genres (e.g., "rock+electronic", "ambient+relaxing") instrumental: If True, only instrumental tracks (default: True for background music) speed: Track tempo - "verylow", "low", "medium", "high", "veryhigh" min_duration: Minimum duration in seconds max_duration: Maximum duration in seconds limit: Max results to return (1-200, default 10) client_id: Jamendo API client ID (optional, falls back to JAMENDO_CLIENT_ID env var)

Returns: { "success": True, "data": { "tracks": [ { "id": "1532771", "name": "Upbeat Corporate", "duration_sec": 120, "artist": "Paul Werner", "album": "Corporate Vibes", "audio_url": "https://...", "download_url": "https://...", "image_url": "https://...", "license": "CC BY-NC-SA" }, ... ], "total": 150, "source": "Jamendo (Creative Commons licensed)" } }

Example: # Find background music for a product demo list_stock_music(query="corporate", tags="pop+funk", instrumental=True)

# Find cinematic music
list_stock_music(tags="cinematic+epic", speed="medium", min_duration=60)

Inputs: tags, limit, query, speed, +4 more. Returns: Envelope returned by browser-director tools. ``suggestions`` and ``hints`` are…

mock_networkA
Destructive

[Agent Browser] Mock network requests matching a URL pattern. Use for frontend isolation testing by intercepting and mocking API calls. Pattern uses glob matching (e.g., '**/api/users*'). Response body is returned as-is.

Inputs: url_pattern (required), response_body (required), status, content_type. Returns: Envelope returned by browser-director tools. ``suggestions`` and ``hints`` are…

networkA
Read-onlyIdempotent

[Agent Browser] Get network request log (API calls, resource loads, failures). Returns data.entries array with method, url, status, failure. Max 200 entries. Use to verify API calls were made or debug failed requests.

Inputs: no named parameters. Returns: Envelope returned by browser-director tools. ``suggestions`` and ``hints`` are…

page_stateA
Read-onlyIdempotent

[Agent Browser] Get comprehensive current page state snapshot. Returns: URL, title, viewport size, visible interactable elements, and form fields. Use this after actions to understand what changed without taking a screenshot. Set include_text=True to also get a text summary of the page content (headings, key text).

Inputs: include_text. Returns: Envelope returned by browser-director tools. ``suggestions`` and ``hints`` are…

pressA
Destructive

[Agent Browser] Press a keyboard key globally (not tied to an element). Common keys: Enter, Tab, Escape, ArrowDown, ArrowUp, Backspace, Delete. Use after fill() to submit forms, or for keyboard navigation.

Inputs: key (required). Returns: Envelope returned by browser-director tools. ``suggestions`` and ``hints`` are…

recording_statusA
Read-onlyIdempotent

[Cinematic Engine] Get current recording status.

Returns: {"success": True, "data": {"recording": bool, "duration_sec": ..., "video_dir": ...}}

Inputs: no named parameters. Returns: Envelope returned by browser-director tools. ``suggestions`` and ``hints`` are…

reloadA
Destructive

[Agent Browser] Reload/refresh the current page (like pressing F5). Waits for DOM content to load. Use to reset page state or retry after errors. Clears form inputs but preserves cookies and localStorage.

Inputs: no named parameters. Returns: Envelope returned by browser-director tools. ``suggestions`` and ``hints`` are…

render_demoA
Destructive

[Cinematic Engine] Export a narrated demo as an MP4.

Muxes a recording with an optional voiceover and optional background music. This is the common last step after start_recording and generate_voiceover. Ken Burns, titles, and multi-clip timelines are not done here; check_environment() returns those ffmpeg commands.

The encode is capped at 120 seconds. On timeout the response includes the ffmpeg command so the agent can finish it in a shell.

Args: video: Path to the recording (webm or mp4), inside the working directory. output: Path of the MP4 to write, inside the working directory. voiceover: Optional narration audio (mp3 or wav). music: Optional background music file. music_volume: Music level from 0 to 1. Default 0.15.

Inputs: video (required), output (required), music, voiceover, +1 more. Returns: Envelope returned by browser-director tools. ``suggestions`` and ``hints`` are…

screenshotA
Idempotent

[Agent Browser] Take a screenshot (PNG).

Args: name: Optional filename (without extension). Defaults to "screenshot". full_page: If True, captures full scrollable page. If False, viewport only. quality: Screenshot quality mode: - "optimized" (default): Resizes large images (>2000px) for faster LLM processing - "full": Original resolution, no compression. Use for video/cinematic production.

Returns the file path in data.path. Screenshots are saved to ./screenshots/. Use quality="full" when screenshots will be used for Ken Burns videos or other cinematic production where image quality matters.

Inputs: name, quality, full_page. Returns: Envelope returned by browser-director tools. ``suggestions`` and ``hints`` are…

scrollA
Destructive

[Agent Browser] Scroll the page in a direction: 'up', 'down', 'top', 'bottom'. Use to reveal elements below the fold or trigger lazy-loading content. 'up'/'down' scroll by 500px; 'top'/'bottom' go to page extremes.

Inputs: direction (required). Returns: Envelope returned by browser-director tools. ``suggestions`` and ``hints`` are…

selectA
Destructive

[Agent Browser] Select an option in a dropdown by its value attribute. The value must match the 'value' attr of an , not the visible text. Use page_state() or find_elements() to discover available option values.

Inputs: value (required), selector (required). Returns: Envelope returned by browser-director tools. ``suggestions`` and ``hints`` are…

set_presentation_modeA
Idempotent

[Cinematic Engine] Enable or disable presentation mode.

Presentation mode optimizes the page for video recording:

  • Hides scrollbars for cleaner visuals

  • Enables smooth scrolling CSS

  • Creates a polished, demo-ready appearance

Args: enabled: True to enable, False to disable

Returns: {"success": True, "data": {"presentation_mode": True}}

Inputs: enabled. Returns: Envelope returned by browser-director tools. ``suggestions`` and ``hints`` are…

smooth_scrollA
Destructive

[Cinematic Engine] Smoothly scroll the page with eased animation.

Unlike the standard scroll tool which jumps instantly, this provides smooth, cinematic scrolling perfect for video recording.

Args: direction: "up", "down", "top", or "bottom" amount: Pixels to scroll (for "up"/"down" only) duration_ms: Animation duration in milliseconds

Returns: {"success": True, "data": {"direction": "down", "scrolled_to": 500}}

Inputs: amount, direction, duration_ms. Returns: Envelope returned by browser-director tools. ``suggestions`` and ``hints`` are…

spotlightA
Idempotent

[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()

Inputs: selector (required), color, style, pulse_ms, +1 more. Returns: Envelope returned by browser-director tools. ``suggestions`` and ``hints`` are…

start_recordingA
Destructive

[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.

Inputs: width, height, filename. Returns: Envelope returned by browser-director tools. ``suggestions`` and ``hints`` are…

stop_recordingA
Destructive

[Cinematic Engine] Stop video recording and return the video file path.

Closes the recording context and retrieves the generated video file. The video is saved as WebM format by Playwright.

Returns: {"success": True, "data": {"path": "...", "duration_sec": ...}}

Inputs: no named parameters. Returns: Envelope returned by browser-director tools. ``suggestions`` and ``hints`` are…

storageA
Read-onlyIdempotent

[Agent Browser] Get localStorage contents as JSON string. Returns data.storage. Use JSON.parse() on result to access individual keys. For sessionStorage, use evaluate('JSON.stringify(sessionStorage)').

Inputs: no named parameters. Returns: Envelope returned by browser-director tools. ``suggestions`` and ``hints`` are…

suggest_next_actionsA
Read-onlyIdempotent

[Agent Browser] Analyze current page and suggest relevant tools/actions. Use when stuck or unsure what to do next. Returns context-aware hints based on:

  • Page type (PDF, canvas, iframes)

  • Forms, modals, error messages

  • Loading states and dynamic content

Inputs: no named parameters. Returns: Envelope returned by browser-director tools. ``suggestions`` and ``hints`` are…

textB
Read-onlyIdempotent

[Agent Browser] Get the text content of an element. Returns the first matching element's textContent. Useful for verification.

Inputs: selector (required). Returns: Envelope returned by browser-director tools. ``suggestions`` and ``hints`` are…

typeA
Destructive

[Agent Browser] Type text character by character with key events. Slower than 'fill' but triggers JS keydown/keyup handlers. Use for autocomplete, live search, or character-counting inputs.

Inputs: text (required), selector (required). Returns: Envelope returned by browser-director tools. ``suggestions`` and ``hints`` are…

type_humanA
Destructive

[Cinematic Engine] Type text with human-like timing and rhythm.

Simulates realistic typing with variable speed, pauses after punctuation, and natural rhythm variance.

Args: selector: CSS selector for the input element text: Text to type wpm: Words per minute (default 60, average typing speed) variance: Timing variance factor (0.0-1.0, default 0.3 = 30% variation)

Returns: {"success": True, "data": {"typed": "...", "wpm": 60}}

Note: For video recording, this creates a realistic typing effect that looks natural rather than instant text insertion.

Inputs: text (required), selector (required), wpm, variance. Returns: Envelope returned by browser-director tools. ``suggestions`` and ``hints`` are…

uploadA
Destructive

[Agent Browser] Upload a file to an element. file_path must be an absolute path to an existing file on the local system. Use for file upload forms, image uploads, document submissions.

Inputs: selector (required), file_path (required). Returns: Envelope returned by browser-director tools. ``suggestions`` and ``hints`` are…

validate_selectorA
Read-onlyIdempotent

[Agent Browser] Validate a selector before using it in an action. Use to check if a selector matches elements and how many, preventing blind failures. Returns match count, sample text, and suggestions for ambiguous selectors. Lightweight alternative to find_elements for quick validation.

Inputs: selector (required). Returns: Envelope returned by browser-director tools. ``suggestions`` and ``hints`` are…

valueA
Read-onlyIdempotent

[Agent Browser] Get the current value of an input, textarea, or select element. Use to verify form state or read user input. Returns data.value. For non-input elements, use text() instead.

Inputs: selector (required). Returns: Envelope returned by browser-director tools. ``suggestions`` and ``hints`` are…

viewportA
Destructive

[Agent Browser] Resize the browser viewport to specific dimensions. Use to test responsive layouts. Common sizes: 1280x900 (desktop), 768x1024 (tablet), 375x667 (mobile). May trigger CSS media queries and responsive JS.

Inputs: width (required), height (required). Returns: Envelope returned by browser-director tools. ``suggestions`` and ``hints`` are…

waitA
Read-onlyIdempotent

[Agent Browser] Hard wait for a duration in milliseconds. Avoid when possible - prefer wait_for, wait_for_text, or wait_for_url. Only use for animations or when no element change can be detected.

Inputs: duration_ms. Returns: Envelope returned by browser-director tools. ``suggestions`` and ``hints`` are…

wait_forA
Read-onlyIdempotent

[Agent Browser] Wait for an element to appear in the DOM. Use after actions that load dynamic content. Most interaction tools auto-wait, so only use this for elements that appear asynchronously after page interactions.

Inputs: selector (required), timeout_ms. Returns: Envelope returned by browser-director tools. ``suggestions`` and ``hints`` are…

wait_for_changeA
Read-onlyIdempotent

[Agent Browser] Wait for an element's content or attribute to change. Use for SPAs that update DOM without navigation (loading states, live data). If attribute is None, watches for text content changes.

Inputs: selector (required), attribute, timeout_ms. Returns: Envelope returned by browser-director tools. ``suggestions`` and ``hints`` are…

wait_for_load_stateA
Read-onlyIdempotent

[Agent Browser] Wait for page to reach a load state: 'load', 'domcontentloaded', 'networkidle'. 'networkidle' waits until no network requests for 500ms - good for SPAs. 'domcontentloaded' is faster but may miss async content.

Inputs: state. Returns: Envelope returned by browser-director tools. ``suggestions`` and ``hints`` are…

wait_for_textB
Read-onlyIdempotent

[Agent Browser] Wait for specific text to appear anywhere on the page. Use after actions that trigger dynamic content (e.g., "Loading complete", "Success"). More reliable than wait() for async operations with known completion text.

Inputs: text (required), timeout_ms. Returns: Envelope returned by browser-director tools. ``suggestions`` and ``hints`` are…

wait_for_urlA
Read-onlyIdempotent

[Agent Browser] Wait for URL to contain a pattern (substring match). Use after form submissions, login flows, or redirects. E.g., wait_for_url('/dashboard'). Returns data.url with the final URL.

Inputs: pattern (required), timeout_ms. Returns: Envelope returned by browser-director tools. ``suggestions`` and ``hints`` are…

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.4/5.0

    Scored across 71 tools

    Disambiguation3/5

    The set has many overlapping families such as wait/wait_for/wait_for_text/wait_for_url, click/click_nth, fill/type/type_human, scroll/smooth_scroll, and highlight/spotlight/annotate. Descriptions usually clarify the intended differences, but generic names like 'value', 'text', 'clear', and multiple 'call first' entry points make some selections less obvious.

    Naming Consistency3/5

    Almost all names use snake_case, but the semantic pattern is mixed: many are verb_noun (get_url, start_recording), while many are bare nouns or verbs (value, text, attr, count, cookies, dialog, scroll, wait, clear). The convention is readable but not predictably consistent across 71 tools.

    Tool Count1/5

    71 tools is far beyond a well-scoped set for a browser automation plus cinematic recording server. The surface combines two large domains and many specialized variants, making discovery and correct selection unnecessarily costly.

    Completeness4/5

    Coverage is broad and lifecycle-oriented: navigation, interaction, waits, assertions, storage/cookies, console/network, mocks, page-state extraction, voiceover, recording, cinematic effects, music, and MP4 rendering are all present. Minor gaps like tab/iframe management or file download handling are workable via evaluate or external commands.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables real browser automation as tools in Cursor, Claude Desktop, Windsurf, and any MCP-compatible client, allowing AI agents to interact with web pages through natural language.
      43 npm
      MIT
    • A
      license
      B
      quality
      D
      maintenance
      Enables AI to control browsers via natural language for web automation, testing, and data scraping. Supports Chrome-based browsers and integrates with any MCP-compatible AI tool.
      17
      3
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables AI agents to operate local browsers through WebMCP-first actions, DOM/Shadow DOM and iframe observation, structured data extraction, workflow playback, and verifiable execution evidence via stdio MCP tools.
      MIT