You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+93-67Lines changed: 93 additions & 67 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -335,79 +335,73 @@ The Browserbase MCP server provides the following tools for browser automation:
335
335
336
336
### Multi-Session Management Tools
337
337
338
-
The server now supports managing multiple browser sessions in parallel, allowing you to control multiple browsers simultaneously:
338
+
The server supports managing multiple independent browser sessions in parallel, allowing you to control multiple browsers simultaneously for complex automation workflows:
339
339
340
-
-**stagehand_session_create_multi**
341
-
- Create a new independent Stagehand browser session
340
+
#### Session Lifecycle Management
341
+
342
+
-**multi-browserbase_stagehand_session_create**
343
+
- Create a new independent Stagehand browser session with full web automation capabilities
344
+
- Each session is isolated with its own browser instance, cookies, and state
342
345
- Inputs:
343
-
-`name` (string, optional): Optional name for the session
344
-
-`browserbaseSessionID` (string, optional): Resume an existing Browserbase session
│ ├── tools/ # Tool definitions and implementations
431
+
│ │ ├── act.ts # Stagehand action execution tool
432
+
│ │ ├── extract.ts # Page content extraction tool
433
+
│ │ ├── navigate.ts # URL navigation tool
434
+
│ │ ├── observe.ts # Element observation tool
435
+
│ │ ├── screenshot.ts # Screenshot capture tool
436
+
│ │ ├── session.ts # Single session management tools
437
+
│ │ ├── multiSession.ts # Multi-session management and session-aware tools
438
+
│ │ ├── tool.ts # Tool type definitions and interfaces
439
+
│ │ └── index.ts # Tool exports and registration
440
+
│ └── types/ # TypeScript type definitions
441
+
│ └── types.ts # Shared type definitions for sessions and configurations
443
442
├── dist/ # Compiled JavaScript output
444
443
├── assets/ # Images and documentation assets
445
444
├── cli.js # Executable entry point for CLI usage
@@ -471,13 +470,24 @@ mcp-server-browserbase/
471
470
472
471
**server.ts** - Server list management providing factory patterns for server creation and handling multiple concurrent connections.
473
472
474
-
### Tools & Resources
473
+
**stagehandStore.ts** - Multi-session store managing parallel browser sessions with lifecycle tracking, automatic cleanup, and session metadata.
474
+
475
+
### MCP Protocol Specifics Implementation
476
+
477
+
**mcp/prompts.ts** - Prompt template definitions and handlers implementing the MCP prompts specification with argument substitution.
478
+
479
+
**mcp/resources.ts** - Resource management implementing the MCP resources specification, handling screenshot storage, URI resolution, and base64-encoded data serving.
475
480
476
-
**tools/** - Individual tool implementations with type-safe schemas including browser automation (navigate, act, extract, observe, screenshot) and session management tools.
481
+
### Tools & Types
477
482
478
-
**resources.ts** - Screenshot resource management with in-memory storage, URI resolution, and base64-encoded PNG data serving.
483
+
**tools/** - Individual tool implementations with type-safe Zod schemas including:
0 commit comments