Skip to content

[Bug] DevTools screenshot action calls browser_screenshot, but Playwright MCP exposes browser_take_screenshot #94

@AdithyanI

Description

@AdithyanI

Environment

  • MCP client: [Codex]
  • next-devtools-mcp version: 0.3.4 (started with npx --yes --ignore-existing next-devtools-mcp@0.3.4 --isolated)
  • Next.js app: dev server on localhost:3000 (Next 16)
  • OS: macOS

What I see

  • browser_evallist_tools returns Playwright tools including browser_take_screenshot and browser_snapshot (no browser_screenshot).
  • Calling browser_eval with action: "screenshot" fails:

Result

Error: Tool "browser_screenshot" not found

  • Navigation etc. works fine.

Expectation
screenshot should map to the available Playwright tool (e.g., browser_take_screenshot or browser_snapshot) and return an image payload.

Steps to reproduce

  1. Start next-devtools-mcp 0.3.4: npx --yes next-devtools-mcp@0.3.4 --isolated
  2. In the MCP client, ask it run:
    • browser_evalaction: "list_tools"
    • browser_evalaction: "screenshot"
  3. Observe the missing-tool error, even though browser_take_screenshot is present.

Notes
Looks like the client wrapper still invokes browser_screenshot while the server now exposes browser_take_screenshot. Updating the mapping should fix the screenshot action.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions