Skip to main content
prompt GP ChatGPT

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

Install into Claude Code · Manually: put the files in place All methods and platforms ↓
.claude/commands/screenshot.md
Open on GitHub

What 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.png and deliver it with share_file.
  • Capture the screen as a PNG under /workspace so 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.md

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

Similar prompts

All prompts for Agent setup: memory, context, orchestration →

From the same set132

The whole set →
task_memory_timeline The task_memory_timeline Claude Code prompt displays the timeline of one past task by its exact ID. It lists the goal, conclusion, apps and sites, plus brief step labels with numbers and times. GP ChatGPT ★ 9,488repo stars task_memory_step The task_memory_step Claude Code prompt retrieves a record of one step from an earlier task. It shows the step’s actions and the text it read at the time. GP ChatGPT ★ 9,488repo stars mika_login_site The mika_login_site Claude Code prompt opens a site in Mika’s browser so the user can sign in themselves. The agent waits for approval before opening the page, then calls mika_confirm_login after the user finishes. GP ChatGPT ★ 9,488repo stars skill_read skill_read — a prompt for Claude Code and ChatGPT that retrieves a skill’s full text by name. It can return the main text or an attachment listed in the skill’s files. GP ChatGPT ★ 9,488repo stars knowledge_read The knowledge_read prompt for Claude Code and ChatGPT reads information about apps and websites. It opens an attachment or looks up a resource that has not been opened yet. GP ChatGPT ★ 9,488repo stars phone_find The phone_find Claude Code prompt scrolls a mobile app and searches its accessibility tree for text, a resource ID, or a role. It stops if the app changes or the content no longer moves. GP ChatGPT ★ 9,488repo stars run_command This Claude Code prompt runs shell commands in a Linux sandbox. Commands use /bin/sh -lc with /workspace as the working directory. GP ChatGPT ★ 9,488repo stars view_image The view_image Claude Code prompt answers questions about an image using only visible details. It describes the scene and transcribes legible text. GP ChatGPT ★ 9,488repo stars

Project sponsors

Companies that keep this analytics open