From 7c23766311d6375d252049a0d0da66ba5d0127a1 Mon Sep 17 00:00:00 2001 From: "Tommy D. Rossi" Date: Sat, 24 Jan 2026 18:18:11 +0100 Subject: [PATCH] Update SKILL.md --- skills/playwriter/SKILL.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/skills/playwriter/SKILL.md b/skills/playwriter/SKILL.md index 473efef..73aaa3f 100644 --- a/skills/playwriter/SKILL.md +++ b/skills/playwriter/SKILL.md @@ -418,6 +418,8 @@ Always use `scale: 'css'` to avoid 2-4x larger images on high-DPI displays: await page.screenshot({ path: 'shot.png', scale: 'css' }); ``` +If you want to read back the image file into context make sure to resize it first, scaling down the image to make sure max size is 1500px. for example with `sips --resampleHeightWidthMax 1500 input.png --out output.png` on macOS + ## page.evaluate Code inside `page.evaluate()` runs in the browser - use plain JavaScript only, no TypeScript syntax. Return values and log outside (console.log inside evaluate runs in browser, not visible):