We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a94dc0e commit 907a3d6Copy full SHA for 907a3d6
1 file changed
src/tools/pages.ts
@@ -211,6 +211,12 @@ export const resizePage = defineTool({
211
handler: async (request, response, context) => {
212
const page = context.getSelectedPage();
213
214
+ const client = await page.createCDPSession();
215
+ const {windowId} = await client.send('Browser.getWindowForTarget');
216
+ const {bounds} = await client.send('Browser.getWindowBounds', {
217
+ windowId,
218
+ });
219
+
220
await page.resize({
221
contentWidth: request.params.width,
222
contentHeight: request.params.height,
0 commit comments