You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/lib/server.js
+3-2Lines changed: 3 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,8 @@ const { version } = require('../../package.json');
19
19
20
20
constserver=newMcpServer({
21
21
name: "MCP Selenium",
22
-
version
22
+
version,
23
+
instructions: "To understand the current page state, read the accessibility://current resource. It provides a structured accessibility tree that's faster and more reliable for finding element locators."
23
24
});
24
25
25
26
// BiDi imports — loaded dynamically to avoid hard failures if not available
@@ -436,7 +437,7 @@ server.registerTool(
436
437
server.registerTool(
437
438
"take_screenshot",
438
439
{
439
-
description: "captures a screenshot of the current page",
440
+
description: "captures a screenshot of the current page. Prefer using the accessibility://current resource for understanding page content. Use screenshots only when visual layout matters.",
440
441
inputSchema: {
441
442
outputPath: z.string().optional().describe("Optional path where to save the screenshot. If not provided, returns an image/png content block.")
0 commit comments