feat: add video recording tools for browser sessions

Add three new MCP tools for recording browser automation:
- browser_start_recording: Enable video recording with configurable size/filename
- browser_stop_recording: Stop recording and return video file paths
- browser_recording_status: Check recording status and configuration

Key features:
- Automatic video saving when pages/contexts close
- Configurable video size and output directory
- Enhanced LLM guidance with clear workflow instructions
- Integration with existing browser context management

Videos are saved as .webm files in {outputDir}/videos/ directory.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Ryan Malloy 2025-07-23 22:16:13 -06:00
parent e934d5e23e
commit e846cd509c
5 changed files with 338 additions and 2 deletions

View file

@ -27,6 +27,7 @@ import pdf from './tools/pdf.js';
import snapshot from './tools/snapshot.js';
import tabs from './tools/tabs.js';
import screenshot from './tools/screenshot.js';
import video from './tools/video.js';
import wait from './tools/wait.js';
import mouse from './tools/mouse.js';
@ -48,6 +49,7 @@ export const allTools: Tool<any>[] = [
...screenshot,
...snapshot,
...tabs,
...video,
...wait,
];