Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
10 changes: 5 additions & 5 deletions src/lib/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ import { createRequire } from 'module';
const require = createRequire(import.meta.url);
const { version } = require('../../package.json');

const server = new McpServer({
name: "MCP Selenium",
version
});
const server = new McpServer(
{ name: "MCP Selenium", 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." }
);

// BiDi imports — loaded dynamically to avoid hard failures if not available
let LogInspector, Network;
Expand Down Expand Up @@ -436,7 +436,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