Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions integrations/magnitude.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,12 @@ const client = new Kernel({
apiKey: process.env.KERNEL_API_KEY,
});

const kernelBrowser = await client.browsers.create();
const kernelBrowser = await client.browsers.create({
viewport: {
width: 1920,
height: 1080
}
});

console.log(`Live view url: ${kernelBrowser.browser_live_view_url}`);
```
Expand All @@ -43,10 +48,12 @@ const agent = await startBrowserAgent({
browser: {
cdp: kernelBrowser.cdp_ws_url,
contextOptions: {
viewport: { width: 1024, height: 768 }
viewport: {
width: 1920,
height: 1080
}
}
},
virtualScreenDimensions: { width: 1024, height: 768 },
llm: {
provider: 'anthropic',
options: {
Expand Down