[Feature Request] Allow posting images (screenshots) to GitHub PR/Issue comments
Describe the feature or problem you'd like to solve
When using Claude Code for UI development, a natural workflow is:
- Make UI changes
- Take a screenshot to verify the result
- Post the screenshot to the PR comment as visual confirmation
Claude Code can already take screenshots (via browser tools, Playwright MCP, etc.), but there is no way to embed those images into GitHub PR/Issue comments from the CLI.
Currently, gh pr comment only accepts markdown text. GitHub does not provide a public API for uploading images to their CDN (user-images.githubusercontent.com), so there's no programmatic way to include screenshots in comments.
Workarounds (all have significant drawbacks)
- Commit images to the repo → Bloats the repository, pollutes git history
- External hosting (imgur, etc.) → Private code/UI leaked to third-party services
- GitHub release assets → Awkward workflow, not designed for this
- Build artifacts + link → Extra click to download, images not inline
How is everyone else handling this?
This has been requested in the GitHub CLI repo since 2020 (cli/cli#1895, cli/cli#4228, cli/cli#4465) but the team has stated they have no plans to implement it, citing the lack of a public GitHub API for image uploads.
Claude Code can take screenshots. Claude Code can create PRs. Claude Code can post comments. But it can't put images in those comments. That feels like a gap — especially for UI work where visual confirmation is the whole point.
Is there a recommended workflow I'm missing? Or is this something that could be supported on the Claude Code side?
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗