From 511a10740a7ac9329427d95d69eb37521a36383d Mon Sep 17 00:00:00 2001 From: "tembo[bot]" <208362400+tembo-io[bot]@users.noreply.github.com> Date: Thu, 16 Oct 2025 00:30:18 +0000 Subject: [PATCH 1/3] docs: update Magnitude guide code snippets --- integrations/magnitude.mdx | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/integrations/magnitude.mdx b/integrations/magnitude.mdx index dec53b6..18d8625 100644 --- a/integrations/magnitude.mdx +++ b/integrations/magnitude.mdx @@ -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}`); ``` @@ -43,10 +48,9 @@ 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: { From 75bd904c07f3fae824a23bcab178442cc2605188 Mon Sep 17 00:00:00 2001 From: "tembo[bot]" <208362400+tembo-io[bot]@users.noreply.github.com> Date: Thu, 16 Oct 2025 00:35:10 +0000 Subject: [PATCH 2/3] fix(docs): align closing bracket in magnitude code snippet --- integrations/magnitude.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/integrations/magnitude.mdx b/integrations/magnitude.mdx index 18d8625..555501d 100644 --- a/integrations/magnitude.mdx +++ b/integrations/magnitude.mdx @@ -49,7 +49,7 @@ const agent = await startBrowserAgent({ cdp: kernelBrowser.cdp_ws_url, contextOptions: { viewport: { width: 1920, height: 1080 } - } + } }, llm: { provider: 'anthropic', From 04caf12470dd24630d85850c64fc2a23f28297b6 Mon Sep 17 00:00:00 2001 From: "tembo[bot]" <208362400+tembo-io[bot]@users.noreply.github.com> Date: Thu, 16 Oct 2025 00:37:46 +0000 Subject: [PATCH 3/3] style: improve viewport formatting in magnitude integration --- integrations/magnitude.mdx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/integrations/magnitude.mdx b/integrations/magnitude.mdx index 555501d..5affce3 100644 --- a/integrations/magnitude.mdx +++ b/integrations/magnitude.mdx @@ -48,7 +48,10 @@ const agent = await startBrowserAgent({ browser: { cdp: kernelBrowser.cdp_ws_url, contextOptions: { - viewport: { width: 1920, height: 1080 } + viewport: { + width: 1920, + height: 1080 + } } }, llm: {