Commit 5dc7b5a
feat(screenshot): add JPEG quality parameter support
- Add optional quality parameter (0-100) to screenshot schema
- Pass quality parameter to Puppeteer screenshot method
- Add optimizeForSpeed flag for improved performance
- Update documentation with new parameter details
This allows users to control JPEG compression quality, significantly
reducing file sizes for screenshots. For example, quality=50 can reduce
file size by ~35% compared to PNG format.
Fixes potential issues with large screenshot sizes exceeding API limits
when using Chrome DevTools MCP with AI assistants.1 parent 1f4007e commit 5dc7b5a
2 files changed
+11
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
308 | 308 | | |
309 | 309 | | |
310 | 310 | | |
| 311 | + | |
311 | 312 | | |
312 | 313 | | |
313 | 314 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
25 | 33 | | |
26 | 34 | | |
27 | 35 | | |
| |||
50 | 58 | | |
51 | 59 | | |
52 | 60 | | |
| 61 | + | |
| 62 | + | |
53 | 63 | | |
54 | 64 | | |
55 | 65 | | |
| |||
0 commit comments