We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 90ed192 commit aa9997dCopy full SHA for aa9997d
1 file changed
src/tools/pages.ts
@@ -207,10 +207,9 @@ export const resizePage = defineTool({
207
handler: async (request, response, context) => {
208
const page = context.getSelectedPage();
209
210
- // @ts-expect-error internal API for now.
211
- await page.resize({
212
- contentWidth: request.params.width,
213
- contentHeight: request.params.height,
+ await page.setViewport({
+ width: request.params.width,
+ height: request.params.height,
214
});
215
216
response.setIncludePages(true);
0 commit comments