Skip to content

[Bug]: [Windows] Chrome MCP screenshot fails with ENOENT - random temp folder name not created #78524

@gaodaabao

Description

@gaodaabao

Bug type

Regression (worked before, now fails)

Beta release blocker

No

Summary

On Windows, when using Chrome MCP with profile="user", the screenshot function fails with ENOENT error. The error shows that OpenClaw tries to save the screenshot to a random temporary folder name like openclaw-chrome-mcp-XXXXXX but that folder doesn't exist.

Steps to reproduce

  1. Start Chrome MCP with openclaw browser start or use browser tool with profile="user"
  2. Open any webpage (e.g., https://baidu.com)
  3. Run browser action=screenshot or openclaw browser screenshot

Expected behavior

Screenshot should be saved successfully, or at least use a consistent/writable temp directory.

Actual behavior

Error: ENOENT: no such file or directory, open 'C:\Users\ZHENGZ~1\AppData\Local\Temp\openclaw\openclaw-chrome-mcp-XXXXXX\screenshot-file-uuid'

Note: The folder name (e.g., 5ThqkM, mPk77v, oJ2xtz, iM8ayT) is different each time, suggesting a random identifier is generated for each screenshot attempt.

OpenClaw version

2026.5.5

Operating system

window11 C:\Program Files\Google\Chrome\Application\chrome.exe`

Install method

No response

Model

minimax

Provider / routing chain

openclaw minimax

Additional provider/model setup details

No response

Logs, screenshots, and evidence

Impact and severity

No response

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingregressionBehavior that previously worked and now fails

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions