Skip to content

feat: add capture_screenshot tool#78

Open
vrecluse wants to merge 2 commits into
Coding-Solo:mainfrom
vrecluse:fix/capture-screenshot-port
Open

feat: add capture_screenshot tool#78
vrecluse wants to merge 2 commits into
Coding-Solo:mainfrom
vrecluse:fix/capture-screenshot-port

Conversation

@vrecluse
Copy link
Copy Markdown

Summary

  • add a clean capture_screenshot MCP tool ported onto current main
  • use an in-project wrapper scene to capture the active Godot viewport without Windows screen capture APIs
  • add a regression test for tool exposure and document the new tool

Context

This replaces the stale implementation in #51 with a conflict-resolved branch based on current main.

Test Plan

  • npm run build
  • npm test
  • run a real Godot project and verify capture_screenshot returns a PNG payload

@vrecluse
Copy link
Copy Markdown
Author

@Coding-Solo I just resolved the merge conflicts and pushed the updated branch. This feature is genuinely important for the Godot MCP workflow because screenshot capture closes a major gap in the agent feedback loop: without it, tools can only rely on logs, while with it they can inspect the actual running viewport for visual debugging and iteration. Local verification is still good after the update (
pm test and
pm run build both pass). When you have a chance, please take another look and merge this soon if it looks good.

swcreative2026 pushed a commit to swcreative2026/godot-mcp that referenced this pull request Apr 9, 2026
Ports PR Coding-Solo#78 from Coding-Solo/godot-mcp, adding a capture_screenshot MCP
tool that grabs the active Godot viewport via an in-project wrapper scene,
without relying on OS-level screen capture APIs. Includes a regression
test that verifies the tool is exposed.

https://claude.ai/code/session_013YAEzr26mGVNjKPxv8De7p
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant