Skip to content

Commit cd56010

Browse files
authored
Docs: Update Magnitude Snippets (#85)
* docs: update Magnitude guide code snippets * fix(docs): align closing bracket in magnitude code snippet * style: improve viewport formatting in magnitude integration --------- Co-authored-by: tembo[bot] <208362400+tembo-io[bot]@users.noreply.github.com>
1 parent cacda29 commit cd56010

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

integrations/magnitude.mdx

Lines changed: 10 additions & 3 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,12 @@ const agent = await startBrowserAgent({
4348
browser: {
4449
cdp: kernelBrowser.cdp_ws_url,
4550
contextOptions: {
46-
viewport: { width: 1024, height: 768 }
51+
viewport: {
52+
width: 1920,
53+
height: 1080
54+
}
4755
}
4856
},
49-
virtualScreenDimensions: { width: 1024, height: 768 },
5057
llm: {
5158
provider: 'anthropic',
5259
options: {

0 commit comments

Comments
 (0)