Skip to content

Commit b09b671

Browse files
committed
server instructions
1 parent ae2ea19 commit b09b671

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@angiejones/mcp-selenium",
3-
"version": "0.2.1",
3+
"version": "0.2.2",
44
"description": "Selenium WebDriver MCP Server",
55
"type": "module",
66
"main": "src/lib/server.js",

src/lib/server.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ const { version } = require('../../package.json');
1919

2020
const server = new McpServer({
2121
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."
2324
});
2425

2526
// BiDi imports — loaded dynamically to avoid hard failures if not available
@@ -436,7 +437,7 @@ server.registerTool(
436437
server.registerTool(
437438
"take_screenshot",
438439
{
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.",
440441
inputSchema: {
441442
outputPath: z.string().optional().describe("Optional path where to save the screenshot. If not provided, returns an image/png content block.")
442443
}

0 commit comments

Comments
 (0)