remove redundancy and update puppeteer_screenshot tool description

This commit is contained in:
Jun
2025-05-06 16:18:57 -05:00
parent 51593d9a9a
commit 4bb9ec779e

View File

@@ -39,20 +39,7 @@ const TOOLS: Tool[] = [
selector: { type: "string", description: "CSS selector for element to screenshot" },
width: { type: "number", description: "Width in pixels (default: 800)" },
height: { type: "number", description: "Height in pixels (default: 600)" },
},
required: ["name"],
},
},
{
name: "puppeteer_screenshot_encoded",
description: "Take a screenshot of the current page or a specific element and return it as a base64-encoded data URI",
inputSchema: {
type: "object",
properties: {
name: { type: "string", description: "Name for the screenshot" },
selector: { type: "string", description: "CSS selector for element to screenshot" },
width: { type: "number", description: "Width in pixels (default: 800)" },
height: { type: "number", description: "Height in pixels (default: 600)" },
encoded: { type: "boolean", description: "If true, capture the screenshot as a base64-encoded data URI (as text) instead of binary image content. Default false." },
},
required: ["name"],
},