view_past_screens — Claude Code prompt for past screens
view_past_screens — a prompt for Claude Code and ChatGPT that retrieves screens read earlier in the current task. It helps the agent revisit an earlier interface state before acting.
Apache-2.0 ★ 9,488 updated 2026-11-16
.claude/commands/view_past_screens.mdWhat view_past_screens does
The prompt retrieves previously read screens from the current task by their screenshotId. A request can include up to 5 IDs; each result gives the app, the step number, and element text, or the screenshot itself when the agent can view images.
Only the latest {{keep}} screens are retained. They show an earlier state, so the screen must be read again before taking action. In Claude Code, place the prompt file at .claude/commands/view_past_screens.md.
What it helps with
- return to a screen read in an earlier step
- compare element text across past screens
- check an earlier interface state before acting
Example prompts for the agent
- Show me the screen I read in the previous step.
- Retrieve the past screens for these
screenshotIdvalues so I can compare them.
How to install view_past_screens
Manually: put the files in place
.claude/commands/view_past_screens.mdHow to use
Paste the text at the start of a chat or into project instructions
Questions about view_past_screens
How do I install view_past_screens in Claude Code?
Place the prompt file at .claude/commands/view_past_screens.md.
What does view_past_screens do?
It retrieves screens read earlier in the current task using their screenshotId. Each result includes the app and step number, plus element text or the image itself.
How many screens can I request at once?
Pass up to 5 screenshotId values in ids. Only the latest {{keep}} screens are retained.
Source text
view_past_screens.md · Apache-2.0
See an earlier screen of this task again, whichever screen it was on. Every screen read gives a screenshotId; pass up to 5 in ids. Only the last {{keep}} are kept. For each one you get its app, its step (the step number of the call that read it, the same as "Step N" in the folded summary of earlier steps) and its element text, or the screenshot itself when you can see images. They show the past, not the present: read the screen again before you act.
© wangzan101 · Apache-2.0 · wangzan101/Mika