screenshot — Claude Code prompt: what it does, how to install
The screenshot Claude Code prompt captures the current screen as an image. Save it to a new PNG path under /workspace, then call share_file to deliver it.
Apache-2.0 ★ 9,488 updated 2026-11-16
.claude/commands/screenshot.mdWhat screenshot does
The prompt captures the current screen and returns an image. To send that image to the user, set savePath to a new .png file under /workspace, then call share_file with the returned path.
Saving never replaces an existing file. A model that cannot view images must set savePath; it can still capture the screen and deliver the file. To install the prompt in Claude Code, place it at .claude/commands/screenshot.md.
What it helps with
- capture the current screen as an image
- save a screenshot as a PNG under
/workspace - deliver a saved screenshot with
share_file
Example prompts for the agent
- Capture the current screen and send me the image.
- Save a new screenshot to
/workspace/screen.pngand deliver it withshare_file. - Capture the screen as a PNG under
/workspaceso the image can be delivered even if the model cannot view it.
How to install screenshot
Manually: put the files in place
.claude/commands/screenshot.mdHow to use
Paste the text at the start of a chat or into project instructions
Questions about screenshot
How do I install screenshot in Claude Code?
Save the prompt as .claude/commands/screenshot.md.
What does screenshot do?
It captures the current screen as an image. To deliver the capture, set a new .png path under /workspace and call share_file with the saved path.
How can a model that cannot view images deliver a screenshot?
Set savePath to a new .png path under /workspace. The captured file can still be delivered with share_file.
Source text
screenshot.md · Apache-2.0
Capture the current screen as an image. To give a screenshot to the user, set savePath to a new .png path under /workspace, then call share_file on the returned path. Saving does not overwrite an existing file. Models that cannot view images must set savePath; they can still capture and deliver the screenshot.
© wangzan101 · Apache-2.0 · wangzan101/Mika