Skip to content

feat: add workflow_save_screenshot MCP tool for visual work#109

Merged
bborn merged 2 commits intomainfrom
task/215-tasks-that-do-frontent-work-or-visual-wo
Jan 11, 2026
Merged

feat: add workflow_save_screenshot MCP tool for visual work#109
bborn merged 2 commits intomainfrom
task/215-tasks-that-do-frontent-work-or-visual-wo

Conversation

@bborn
Copy link
Copy Markdown
Owner

@bborn bborn commented Jan 11, 2026

Summary

  • Add workflow_save_screenshot MCP tool that allows Claude to save screenshots as task attachments
  • Support for base64 and data URI formats, with auto-detection of MIME types (PNG, JPEG, GIF, WebP)
  • Update task guidance prompt to mention screenshot capability for frontend/visual work

Test plan

  • Unit tests pass for the new MCP tool
  • Tests cover base64 data, data URI format, JPEG MIME detection, error cases
  • Full test suite passes
  • Manual test: create a frontend task and verify Claude can save screenshots

🤖 Generated with Claude Code

bborn and others added 2 commits January 11, 2026 10:09
Add a new MCP tool that allows Claude to save screenshots as task
attachments. This enables tasks doing frontend/visual work to capture
screenshots for verification and documentation purposes.

Changes:
- Add workflow_save_screenshot tool to MCP server
- Support base64 and data URI formats for image data
- Auto-detect MIME type from data URI headers
- Auto-generate filenames with timestamps if not provided
- Update task guidance prompt to mention screenshot capability
- Add comprehensive tests for the new tool

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Instead of accepting base64 image data, the new workflow_screenshot
tool actually captures the screen using native OS tools:
- macOS: screencapture -x
- Linux: gnome-screenshot, scrot, or imagemagick

This makes it much easier for Claude to take screenshots - just call
the tool and it captures the entire screen automatically.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@bborn bborn merged commit d932f31 into main Jan 11, 2026
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