chore: allow configuring screenshot tool (#286)

Fixes: https://github.com/microsoft/playwright-mcp/issues/277
This commit is contained in:
Pavel Feldman
2025-04-28 17:21:23 -07:00
committed by GitHub
parent 697a69a8c2
commit 12e72a96c4
3 changed files with 56 additions and 2 deletions

17
config.d.ts vendored
View File

@@ -85,4 +85,21 @@ export type Config = {
* The directory to save output files.
*/
outputDir?: string;
/**
* Configuration for specific tools.
*/
tools?: {
/**
* Configuration for the browser_take_screenshot tool.
*/
browser_take_screenshot?: {
/**
* Whether to disable base64-encoded image responses to the clients that
* don't support binary data or prefer to save on tokens.
*/
omitBase64?: boolean;
}
}
};