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
6 changes: 3 additions & 3 deletions .claude/skills/playwright-dev/mcp-dev.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

### Step 1: Create the Tool File

Create `packages/playwright/src/mcp/browser/tools/<your-tool>.ts`.
Create `packages/playwright/src/tools/<your-tool>.ts`.

Import zod from the MCP bundle and use `defineTool` or `defineTabTool`:

Expand Down Expand Up @@ -115,7 +115,7 @@ export type ToolCapability =

### Step 3: Register the Tool

In `packages/playwright/src/mcp/browser/tools.ts`:
In `packages/playwright/src/tools/tools.ts`:

```typescript
import myTool from './tools/myTool';
Expand Down Expand Up @@ -331,7 +331,7 @@ export type Config = {
};
```

### 2. CLI options type: `packages/playwright/src/mcp/browser/config.ts`
### 2. CLI options type: `packages/playwright/src/mcp/config.ts`

Add to `CLIOptions` type:

Expand Down
12 changes: 6 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading