Chromium you can record, stream and drive
suitecut runs Chromium inside your own program and takes video and sound straight from the renderer, with no screenshots, extensions or open debugging port. Drive it from TypeScript, C++ or any MCP client, then record it, stream it live, or let an agent work while you watch.
Packages
Four packages share one engine. Each has its own page with a short film, a diagram and a quick start.
- suitecut Record, narrate and stream browser flows as finished videos
- @suitecut/browser-control One API for Chromium, Firefox and the suitecut engine
- @suitecut/shared-browser You and an AI agent in one browser window
- SuiteCut::Client Browser control from C++, any language and MCP, without Node
Watch it work
suitecut can also open as a regular Chrome window that you and an AI agent use together. These are unedited screen recordings of that window on a sample shop running locally. The tabs, address bar and password prompt are Chromium's own; the typing comes from suitecut's browser control.
How it fits together
One engine sits in the middle. Everything you build talks to it through the same protocol, and everything it produces comes from its own paint and audio callbacks.
Embedded CEF engine
suitecut ships its own Chromium Embedded Framework runtime. Frames come straight from the renderer's paint callback and sound from its audio stream, so what you record is exactly what the page drew.
- Pinned build
- CEF 156.0.7 on Chromium 156.0.8078.17, beta channel
- Video
- CefRenderHandler::OnPaint, BGRA8 or I420 frames with paint IDs
- Audio
- CefAudioHandler::OnAudioStreamPacket, 48 kHz stereo PCM
- Not used
- No screenshot loop, browser extension or open debugging port
- Process
- One sandboxed helper per launch, hosting isolated contexts and many pages
- Modules
- protocol, runtime, page and process, with one shutdown barrier
- Backpressure
- Callbacks never wait on pipes; one pending frame, 100 audio packets
- Qualified
- 90-case CEF regression package on macOS ARM64, October 21
Media engine
Capture, resampling, encoding and publishing run natively on one clock. Recording and streaming share the pipeline, and the renderer mixes narration with page audio afterwards.
- Capture
- 1–120 FPS ceiling per page; actual paints follow page activity
- Output rate
- Any rate from 1–120, including 29.97 and 59.94
- Resampling
- Newest real image at each tick. Never blended or interpolated
- macOS path
- IOSurface capture, Metal NV12 conversion, h264_videotoolbox
- Audio sync
- Whole-sample boundaries per tick, so fractional rates never drift
- Publishing
- Up to four publishers, fixed bitrate, optional reconnect policy
- Health
- Held images, audio gaps, pauses and source switches are counted
- Narration
- Kokoro 82M with 28 voices, the macOS voice, Piper via plugins
import { record, renderSuiteCut } from 'suitecut'
const result = await record('Native tour', async ({ page, suitecut }) => {
await page.goto('https://example.com')
await suitecut.highlight(page.locator('h1'))
await suitecut.narrate('Welcome to the tour.')
await suitecut.checkpoint('Opening screen')
}, {
native: { width: 1920, height: 1080, framesPerSecond: 120 },
capture: { framesPerSecond: 60, audio: true },
})
await renderSuiteCut({
manifestPath: result.manifestPath,
outputPath: '.suitecut/tour.mp4',
config: { output: { framesPerSecond: 60 } },
})
Browser agent
The simple agent gives a model three tools instead of fifty. It observes the page as compact controls, acts on short refs and waits for a visible change, all inside one deadline.
- Tools
- observe, act and wait
- Observations
- Compact controls and text, 100 controls and 8 KiB by default
- Refs
- Short element refs, replaced on every observation; stale refs rejected
- Batches
- Up to 64 known actions in one act, stopping on the first failure
- Deadlines
- One shared deadline, 5 s by default and capped at 30 s
- Safety
- Mutations are never retried. Password values are redacted
- Results
- delivered confirms the browser received it; effect checks the UI
suitecut::AgentDriver driver(browser);
suitecut::SimpleAgent agent(driver);
auto seen = agent.call("observe", {{"boxes", true}});
auto done = agent.call("act", {
{"action", "fill"}, {"ref", "e1"}, {"value", "Hello"}});
auto ready = agent.call("wait", {{"text", "Saved"}, {"timeoutMs", 2000}});
Use the browser you already have
You don't need the embedded engine to use the agent. Point suitecut at an installed browser and the same observe, act and wait tools, refs and deadlines work against it.
- Chromium family
- Installed Chrome, Chromium, Edge or Brave over a private CDP pipe
- Firefox
- Installed Firefox over WebDriver BiDi
- Attach
- Connect to a browser that is already running instead of launching one
- Remote
- Connection headers and TLS client certificates for browsers on another host
- Nothing extra
- The CLI and C++ SDK need no CEF runtime, Node.js or automation library
suitecut-native-control --session shop --browser /usr/bin/chromium open https://example.com
suitecut-native-control --session shop snapshot
suitecut-native-control --session shop --response none fill e12 'Ada'
suitecut-native-control --session shop click e15
suitecut-native-control --session shop close
import { launchBrowser } from '@suitecut/browser-control'
const browser = await launchBrowser({
backend: 'bidi',
executablePath: '/path/to/firefox',
headless: true,
})
Browser MCP
suitecut-native-control is a native executable that runs as an MCP server, a line-by-line
JSON tool or a persistent command-line session. No Node.js, model or task planner is embedded; your
host brings the agent.
- Transport
- stdio MCP server or one JSON request per line
- Catalogue
- 53 native driver tools plus the three agent tools
- Groups
- core by default; add network, state, debug, media or all
- Backends
- Launch or attach to Chrome, Firefox or the suitecut CEF engine
- Sessions
- Named sessions keep a browser alive; idle after ten minutes
- Artifacts
- Screenshots as image content, PDFs as embedded resources
- Remote
- Connection headers and TLS client certificates for remote browsers
{
"mcpServers": {
"suitecut": {
"command": "/usr/local/bin/suitecut-native-control",
"args": ["--browser", "/usr/bin/chromium", "--mcp", "--tools", "core,network"]
}
}
}
Browser control
@suitecut/browser-control drives the CEF engine, installed Chrome, Chromium, Edge or
Brave over CDP, and Firefox over WebDriver BiDi. It covers 31 feature families, each with scoped
evidence in the
feature checklist.
- Browser lifecycle
- Contexts and profiles
- Pages and popups
- Navigation
- Frames and iframes
- Locators
- Actionability
- Pointer and touch
- Keyboard and text
- Form controls
- Uploads and drag-drop
- DOM inspection
- Evaluation and handles
- Events and cancellation
- Dialogs
- Downloads
- Network observation
- Request routing
- HAR record and replay
- WebSockets
- API requests
- Storage and auth state
- Proxies and permissions
- Emulation
- Virtual time
- Workers
- Accessibility
- Screenshots
- Video and screencast
- Tracing and coverage
A Chrome window people can use
Launch with windowMode: 'chrome' and the same browser control drives a full Chrome
window instead of an offscreen page. Add userDataDir and it keeps its profile between
runs.
- Window
- Chromium's own tabs, address bar, menus, find, zoom and right-click menus
- Shared tabs
- Tabs a person opens become pages the agent can see and drive
- Profile
- Cookies, logins, storage and history survive restarts
- Closed off
- No DevTools, View Source or Inspect, and no open debugging port
- Capture
- Record, stream or watch the window live while a person uses it
- Limits
- Shown on screen, so no headless runs; tested on macOS ARM64
const browser = await launchBrowser({
executablePath: '/path/to/suitecut-browser',
userDataDir: '/path/to/profile',
windowMode: 'chrome',
})
const page = browser.defaultContext().pages()[0]
await page.goto('https://example.com')
Live viewer and human handover
- Take control
- Waits for admitted agent work, then hands input to a person
- Resume AI
- Releases held keys and buttons and returns control
- Same session
- One page, cookies and storage for both people and agents
- Private
- Binds to 127.0.0.1 with a bearer token; no external scripts or CDNs
Testing and tracing
suitecut-test runs suites with fixtures, retries, repeat-each and multi-file discovery,
and writes JSON, JUnit and HTML reports. expectNative adds retrying and soft assertions,
toPass and locator handlers.
Tracing is recorded in C++: screencast frames, DOM, network and accessibility snapshots, and sources, finalized into a zip. Document coverage and HAR record and replay sit alongside.
Benchmarks
The native C++ client against the Node SDK, driving the same pinned CEF binary. Shorter is faster.
See every run, its host and how to reproduce it.
Platforms
- Runtime
- Linux x64 and macOS ARM64, each with its own qualification
- Not yet
- Windows runtime packaging and Safari or WebKit backends
- Requires
- Node.js 22, pnpm, FFmpeg and a separately built CEF executable
- Native SDK
- Builds without Node.js or CEF headers
- Playback
- Stock CEF lacks H.264 and AAC playback; a codec build profile is pinned
Get started
suitecut install fetches checksum-verified media tools and
suitecut doctor reports what's missing.