Capture

Capture — MCP tools exposed to agents.

14 tools in this group.

browser_screenshot

Capture a screenshot of the current page

ParameterTypeRequiredDefaultDescription
annotatebooleannofalseAnnotate interactive elements with numbered labels (default: false)
filenamestringnoOptional filename to save the screenshot (e.g., screenshot.png)
fullPagebooleannofalseCapture the full page (entire document) instead of just the viewport (default: false)
sessionstringnoOptional: named session to run this call in (default: current session).

browser_pdf

Save the current page as a PDF file

ParameterTypeRequiredDefaultDescription
backgroundbooleannoPrint background graphics (default: false)
filenamestringnoOutput filename for the PDF (e.g., page.pdf)
marginobjectnoPage margins in cm (default: 1.0 each)
orientationstringnoPage orientation (default: portrait) (one of: portrait, landscape)
pageobjectnoPage size in cm (default: 21.59 x 27.94, US Letter)
pageRangesarraynoPages to print: numbers or ranges like "2-4" (default: all pages)
scalenumbernoPrint scale, 0.1-2.0 (default: 1.0)
sessionstringnoOptional: named session to run this call in (default: current session).
shrinkToFitbooleannoShrink content to fit the page width (default: true)

browser_record_start

Start a browser recording (screenshots and/or HTML snapshots). Output is Playwright trace viewer compatible.

ParameterTypeRequiredDefaultDescription
bidibooleannofalseRecord raw BiDi commands in the recording (default: false)
formatstringno"jpeg"Screenshot format: "jpeg" or "png" (default: "jpeg") (one of: jpeg, png)
namestringnoName for the recording (default: "record")
qualitynumberno0.5JPEG quality 0.0-1.0 (default: 0.5, ignored for png)
screenshotsbooleannotrueCapture screenshots after each action (default: true)
sessionstringnoOptional: named session to run this call in (default: current session).
snapshotsbooleannofalseCapture HTML snapshots (default: false)
sourcesbooleannofalseInclude source information (default: false)
titlestringnoTitle shown in trace viewer (defaults to name)

browser_record_stop

Stop recording and save to a Playwright-compatible trace ZIP file

ParameterTypeRequiredDefaultDescription
pathstringnoOutput file path (default: record.zip)
sessionstringnoOptional: named session to run this call in (default: current session).

browser_record_start_group

Start a named group in the recording (groups nest actions in the trace viewer)

ParameterTypeRequiredDefaultDescription
namestringyesName for the group
sessionstringnoOptional: named session to run this call in (default: current session).

browser_record_stop_group

End the current recording group

ParameterTypeRequiredDefaultDescription
sessionstringnoOptional: named session to run this call in (default: current session).

browser_record_start_chunk

Start a new chunk within the current recording (for splitting long recordings)

ParameterTypeRequiredDefaultDescription
namestringnoName for the chunk
sessionstringnoOptional: named session to run this call in (default: current session).
titlestringnoTitle shown in trace viewer (defaults to name)

browser_record_stop_chunk

Package the current recording chunk into a ZIP file (recording remains active)

ParameterTypeRequiredDefaultDescription
pathstringnoOutput file path (default: chunk.zip)
sessionstringnoOptional: named session to run this call in (default: current session).

browser_screencast_start

Start a native video recording of the page viewport (WebDriver BiDi browsingContext.startScreencast). The browser writes the video to a file it chooses; browser_screencast_stop returns the path. One active screencast per session. Separate from browser_record_start (per-action trace recording). Fails cleanly if the browser does not support native screencast.

ParameterTypeRequiredDefaultDescription
audiobooleannofalseAlso capture the page's audio (default: false)
frameRateintegernoRequested video frame rate in frames per second (default: browser-chosen)
heightintegernoRequested video height in pixels (default: browser-chosen)
mimeTypestringnoVideo MIME type (e.g. "video/webm"; default: browser-chosen)
sessionstringnoOptional: named session to run this call in (default: current session).
widthintegernoRequested video width in pixels (default: browser-chosen)

browser_screencast_stop

Stop a native screencast (WebDriver BiDi browsingContext.stopScreencast) and return the browser-written video file path. Optionally copy the file to outputPath when it is locally readable; the browser-created source file is never deleted.

ParameterTypeRequiredDefaultDescription
outputPathstringnoCopy the recorded video to this local path (requires the browser's file to be locally readable)
screencaststringnoScreencast id to stop (default: this session's active screencast)
sessionstringnoOptional: named session to run this call in (default: current session).

browser_diff_map

Compare current page state vs last map. Shows additions (+) and removals (-) since the last browser_map call.

ParameterTypeRequiredDefaultDescription
sessionstringnoOptional: named session to run this call in (default: current session).

browser_diff_snapshot

Compare the current accessibility snapshot vs the last one. Shows removals (-) and additions (+) since the last browser_a11y_tree or browser_diff_snapshot call; pass baseline to diff against a saved snapshot file instead.

ParameterTypeRequiredDefaultDescription
baselinestringnoPath to a saved snapshot file (rendered snapshot text or raw browser_a11y_tree JSON) to diff against instead of the last snapshot
everythingbooleannofalseInclude all nodes (generic containers, etc.), like browser_a11y_tree
selectorstringnoCSS selector or @ref to scope the snapshot to a subtree
sessionstringnoOptional: named session to run this call in (default: current session).

browser_diff_screenshot

Compare a current screenshot against a baseline image file, pixel by pixel. Reports match, changed/total pixel counts and mismatch percent; optionally writes a visual diff image.

ParameterTypeRequiredDefaultDescription
baselinestringyesPath to the baseline PNG/JPEG image to compare against
fullPagebooleannofalseCapture the full page instead of just the viewport
outputstringnoPath to write the diff image (changed pixels in red); only written when pixels differ
sessionstringnoOptional: named session to run this call in (default: current session).
thresholdnumberno0.1Per-pixel color tolerance from 0 (exact) to 1

browser_diff_url

Compare two pages: navigates to url1, snapshots, navigates to url2, snapshots, and diffs the accessibility snapshots (optionally screenshots too). The browser is left on url2.

ParameterTypeRequiredDefaultDescription
everythingbooleannofalseInclude all nodes in the snapshots
fullPagebooleannofalseCapture full-page screenshots (with screenshot)
screenshotbooleannofalseAlso compare screenshots of the two pages
selectorstringnoCSS selector to scope both snapshots to a subtree
sessionstringnoOptional: named session to run this call in (default: current session).
url1stringyesFirst URL (a bare host gets https:// prepended)
url2stringyesSecond URL; the browser stays on this page afterwards

On this page