Skip to content

[Bug]: Screenshot MCP Tool saving to Docker filesystem and not providing PNG. #1758

@JewceCookie

Description

@JewceCookie

crawl4ai version

0.8.0

Expected Behavior

When calling the screenshot MCP tool with an output path, I expect it to save it to that path on my file system. I also expect it to save a PNG, as described in the MCP tool description: "Capture a full-page PNG screenshot of the specified URL [...]"
Example usage:
url: https://example.com
screenshot_wait_for: 2
output_path: C:\my\path\screenshot.png

Current Behavior

The screenshot is saved to the file system of my docker container (in the /app/ folder), running on a different computer.
I wasn't able to check the file saved to my docker filesystem, but when calling the tool without an output path, I am not returned PNG, but rather (base-64 encoded, which is fine) BMP.

Is this reproducible?

Yes

Inputs Causing the Bug

-Crawl4Ai Docker container running on my linux server
-I am using Windows
-I installed the MCP tool to cursor.

Steps to Reproduce

Ask the cursor AI agent to use the screenshot tool to save a png image to a specific path.

Code snippets

OS

Windows (me), Linux (MCP Server)

Python version

/

Browser

/

Browser version

/

Error logs & Screenshots (if applicable)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐞 BugSomething isn't working📌 Root causedidentified the root cause of bug

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions