Skip to content

Commit 511a107

Browse files
committed
docs: update Magnitude guide code snippets
1 parent cacda29 commit 511a107

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

integrations/magnitude.mdx

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,12 @@ const client = new Kernel({
2727
apiKey: process.env.KERNEL_API_KEY,
2828
});
2929

30-
const kernelBrowser = await client.browsers.create();
30+
const kernelBrowser = await client.browsers.create({
31+
viewport: {
32+
width: 1920,
33+
height: 1080
34+
}
35+
});
3136

3237
console.log(`Live view url: ${kernelBrowser.browser_live_view_url}`);
3338
```
@@ -43,10 +48,9 @@ const agent = await startBrowserAgent({
4348
browser: {
4449
cdp: kernelBrowser.cdp_ws_url,
4550
contextOptions: {
46-
viewport: { width: 1024, height: 768 }
47-
}
51+
viewport: { width: 1920, height: 1080 }
52+
}
4853
},
49-
virtualScreenDimensions: { width: 1024, height: 768 },
5054
llm: {
5155
provider: 'anthropic',
5256
options: {

0 commit comments

Comments
 (0)