Skip to content

Commit 4dc1ef0

Browse files
committed
browser sizing
1 parent f97b56a commit 4dc1ef0

File tree

1 file changed

+24
-6
lines changed

1 file changed

+24
-6
lines changed

browserbase/README.md

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,6 @@ to provide browser automation tools.
1717
npm run build
1818
```
1919

20-
## Running
21-
22-
```bash
23-
node dist/index.js
24-
```
25-
2620
## How to setup in MCP json
2721

2822
```json
@@ -124,7 +118,31 @@ To use proxies in STDIO, set the --proxies flag in your MCP Config. Your cookies
124118
}
125119
}
126120
}
121+
```
122+
123+
### Browser Viewport Sizing
127124
125+
The default viewport sizing for a browser session is 1024 x 768. You can adjust the Browser viewport sizing with browserWidth and browserHeight flags.
126+
127+
Here's how to use it for custom browser sizing. We recommend to stick with 16:9 aspect ratios (ie: 1920 x 1080, 1280, 720, 1024 x 768)
128+
129+
```json
130+
{
131+
"mcpServers": {
132+
"playwright": {
133+
"command" : "npx",
134+
"args" : [
135+
"@browserbasehq/mcp-server-browserbase",
136+
"--browserHeight" : 1080,
137+
"--browserWidth" : 1920,
138+
],
139+
"env": {
140+
"BROWSERBASE_API_KEY": "",
141+
"BROWSERBASE_PROJECT_ID": ""
142+
}
143+
}
144+
}
145+
}
128146
```
129147

130148
## Structure

0 commit comments

Comments
 (0)