fix(cursor): allow enforcing images for cursor --image-responses=allow (#478)

Fixes https://github.com/microsoft/playwright-mcp/issues/449
This commit is contained in:
Pavel Feldman 2025-05-27 01:25:09 -07:00 committed by GitHub
parent 1051ea810a
commit 9e5ffd2ccf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 18 additions and 14 deletions

View file

@ -64,7 +64,7 @@ const screenshot = defineTool({
else
code.push(`await page.screenshot(${javascript.formatObject(options)});`);
const includeBase64 = !context.config.noImageResponses;
const includeBase64 = context.clientSupportsImages();
const action = async () => {
const screenshot = locator ? await locator.screenshot(options) : await tab.page.screenshot(options);
return {