Skip to content

Commit 4bb9ec7

Browse files
author
Jun
committed
remove redundancy and update puppeteer_screenshot tool description
1 parent 51593d9 commit 4bb9ec7

1 file changed

Lines changed: 1 addition & 14 deletions

File tree

src/puppeteer/index.ts

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -39,20 +39,7 @@ const TOOLS: Tool[] = [
3939
selector: { type: "string", description: "CSS selector for element to screenshot" },
4040
width: { type: "number", description: "Width in pixels (default: 800)" },
4141
height: { type: "number", description: "Height in pixels (default: 600)" },
42-
},
43-
required: ["name"],
44-
},
45-
},
46-
{
47-
name: "puppeteer_screenshot_encoded",
48-
description: "Take a screenshot of the current page or a specific element and return it as a base64-encoded data URI",
49-
inputSchema: {
50-
type: "object",
51-
properties: {
52-
name: { type: "string", description: "Name for the screenshot" },
53-
selector: { type: "string", description: "CSS selector for element to screenshot" },
54-
width: { type: "number", description: "Width in pixels (default: 800)" },
55-
height: { type: "number", description: "Height in pixels (default: 600)" },
42+
encoded: { type: "boolean", description: "If true, capture the screenshot as a base64-encoded data URI (as text) instead of binary image content. Default false." },
5643
},
5744
required: ["name"],
5845
},

0 commit comments

Comments
 (0)