Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@angiejones/mcp-selenium",
"version": "0.2.1",
"version": "0.2.2",
"description": "Selenium WebDriver MCP Server",
"type": "module",
"main": "src/lib/server.js",
Expand Down
5 changes: 3 additions & 2 deletions src/lib/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ const { version } = require('../../package.json');

const server = new McpServer({
name: "MCP Selenium",
version
version,
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."
});
Comment thread
angiejones marked this conversation as resolved.
Outdated

// BiDi imports — loaded dynamically to avoid hard failures if not available
Expand Down Expand Up @@ -436,7 +437,7 @@ server.registerTool(
server.registerTool(
"take_screenshot",
{
description: "captures a screenshot of the current page",
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.",
inputSchema: {
outputPath: z.string().optional().describe("Optional path where to save the screenshot. If not provided, returns an image/png content block.")
}
Expand Down