Browser Director

v0.4.0
io.github.abhinav-nigam/browser-director Checked 3 days ago Published 7 days ago

Operate a site, then direct a narrated demo from one MCP server.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

navigate

Open a URL or move through history. action=goto requires url.

ParameterTypeDescription
actionstring
url

click

Click a matching element. Omit index for a single match. Pass index to click one of several matches.

ParameterTypeDescription
selector *string
index

fill

Clear an input and set its text. value is accepted as a deprecated alias of text.

ParameterTypeDescription
selector *string
text
value

type

Type into an element. human=true paces the keystrokes.

ParameterTypeDescription
selector *string
text *string
humanboolean
wpminteger

select

Select a dropdown option by its value.

ParameterTypeDescription
selector *string
value *string

hover

Hover the pointer over an element.

ParameterTypeDescription
selector *string

focus

Focus an element.

ParameterTypeDescription
selector *string

press

Press a keyboard key, such as Enter, Tab, or Escape.

ParameterTypeDescription
key *string

upload

Upload a file through an input element. The path must stay in the working directory.

ParameterTypeDescription
file_path *string
selector *string

wait

Wait for time, a selector, text, a URL pattern, a load state, or a DOM change.

ParameterTypeDescription
duration_msinteger
name
pattern
selector
statestring
text
timeout_msinteger
untilstring

screenshot

Save a PNG screenshot. quality is optimized or full.

ParameterTypeDescription
full_pageboolean
name
qualitystring

read

Read an element's text, form value, or attribute. name is required for attribute.

ParameterTypeDescription
selector *string
name
partstring

evaluate

Run JavaScript in the page. This is arbitrary code in the page origin.

ParameterTypeDescription
script *string

assert

Check visibility, element text, or the URL. Returns PASS or FAIL and does not throw.

ParameterTypeDescription
kind *string
pattern
selector
text

scroll

Scroll the page. direction is up, down, top, or bottom. smooth uses the eased scroll.

ParameterTypeDescription
direction *string
amountinteger
duration_msinteger
smoothboolean

viewport

Resize the viewport.

ParameterTypeDescription
height *integer
width *integer

inspect

Read cookies, web storage, the console log, or the network log.

ParameterTypeDescription
part *string

clear_storage

Clear localStorage and sessionStorage.

dialog

Handle the next alert, confirm, or prompt.

ParameterTypeDescription
action *string
prompt_textstring

page

Read the page. state includes the URL and interactive elements. markdown and accessibility are the other views.

ParameterTypeDescription
formatstring
include_textboolean
max_lengthinteger
selector

find

Find elements, count them, validate a selector, or search relative to an anchor.

ParameterTypeDescription
anchor
direction
include_hiddenboolean
max_distanceinteger
modestring
selector
target

browser_status

Report browser status. Pass port to probe localhost before navigating.

ParameterTypeDescription
host_namestring
port

get_agent_guide

Read the agent guide. Optional section: selectors, tools, patterns, errors, or safety.

ParameterTypeDescription
section

suggest_next_actions

Suggest the next actions from the current page.

spotlight

Spotlight an element, or clear it. style=outline draws a timed debug border.

ParameterTypeDescription
actionstring
colorstring
dim_opacitynumber
duration_msinteger
pulse_msinteger
selector
stylestring

mock

Mock a network response, or clear every mock.

ParameterTypeDescription
actionstring
content_typestring
response_body
statusinteger
url_pattern

generate_voiceover

Generate narration audio. Requires the video extra and a provider API key.

ParameterTypeDescription
text *string
providerstring
similarity_boost
speednumber
stability
style
use_speaker_boost
voicestring

media_duration

Duration of an audio or video file. kind defaults from the file extension.

ParameterTypeDescription
path *string
kind

recording

Start, stop, or inspect the screen recording.

ParameterTypeDescription
actionstring
filenamestring
heightinteger
widthinteger

annotate

Add a floating label, or clear every label.

ParameterTypeDescription
actionstring
duration_msinteger
positionstring
stylestring
target
text

camera

Zoom, pan, or reset the recording camera. Do not move the cursor while zoomed.

ParameterTypeDescription
action *string
duration_msinteger
levelnumber
selector

render_demo

Mux a recording with optional voiceover and music into an MP4.

ParameterTypeDescription
output *string
video *string
music
music_volumenumber
voiceover

check_environment

Check ffmpeg and API keys, and return ffmpeg command examples.

stock_music

Search Jamendo, or download a track URL.

ParameterTypeDescription
actionstring
client_id
filename
instrumentalboolean
limitinteger
max_duration
min_duration
output
query
speed
tags
url

presentation

Turn presentation mode on or off, or freeze the page clock.

ParameterTypeDescription
mode *string
enabledboolean
timestamp