Skip to content

Commit 8bb9bc6

Browse files
james2doyleOrKoN
authored andcommitted
docs: generate new docs
1 parent a5d4f0c commit 8bb9bc6

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

docs/tool-reference.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,7 @@ so returned values have to JSON-serializable.
306306

307307
**Parameters:**
308308

309+
- **filePath** (string) _(optional)_: The path to save the screenshot to. If provided, the screenshot will be saved to this path instead of being attached to the response.
309310
- **format** (enum: "png", "jpeg") _(optional)_: Type of format to save the screenshot as. Default is "png"
310311
- **fullPage** (boolean) _(optional)_: If set to true takes a screenshot of the full page instead of the currently visible viewport. Incompatible with uid.
311312
- **quality** (number) _(optional)_: Compression quality for JPEG format (0-100). Higher values mean better quality but larger file sizes. Ignored for PNG format.

src/tools/screenshot.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
*/
66

77
import {writeFile} from 'node:fs/promises';
8+
89
import type {ElementHandle, Page} from 'puppeteer-core';
910
import z from 'zod';
1011

0 commit comments

Comments
 (0)