Skip to content

Commit e66458a

Browse files
committed
docs: generate new docs
1 parent 22c8589 commit e66458a

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

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
- **uid** (string) _(optional)_: The uid of an element on the page from the page content snapshot. If omitted takes a pages screenshot.

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)