Claude Code guide in three levels, Beginner to Advanced: hands-on lessons with checked exercises, every volatile fact cited to its source. Independent community guide.
Give Claude a screenshot
Beginner · Elective · about 15 minutes · Needs: Your first change, from request to commit · Verified against Claude Code v2.1.292 (stable) on 2026-10-15
Goal
By the end of this Elective you can add a screenshot or an image to a conversation and get a change from what it shows.
You need
- Your copy of the practice template with no uncommitted changes, and your system's screenshot tool.
- Usage: light.
[!NOTE] In a Codespace, Claude Code runs inside the codespace, not on your computer (Development containers), so give it screenshots as files there. Save each screenshot on your computer, rename it to the name this page uses (
shot.png, thentest-summary.png), and drag it from your computer's file manager onto the.practicefolder in the codespace's Explorer (GitHub Codespaces). Where the Worked example says to paste, ask with its path instead, such asLook at this image: .practice/shot.png. In Your turn, skip themvline.
The idea
Some things are faster to show than to describe: an error on screen, a layout, a diagram. Claude Code reads images, and you can add one to the conversation in three ways (Common workflows):
- drag and drop the image into the Claude Code window;
- copy the image and paste it with
Ctrl+V(Cmd+Valso works in iTerm2;Alt+Von Windows and WSL) (Interactive mode); - give its path in your prompt, such as "Look at this image: /path/to/shot.png".
Worked example
In your practice copy, run the link checker on its samples:
npm run linkcheck -- samplesIt prints the broken link in
guide.md, then1 broken link(s).Take a screenshot of that output and copy it to the clipboard. On a Mac, press
Ctrlas well as the usual keys, such asCtrl+Shift+Cmd+4: without it, macOS saves the screenshot as a file, on your desktop by default (Take a screenshot on Mac).Start
claudeand paste the image. An[Image #1]chip appears in the prompt box (Interactive mode). If no chip appears, drag the screenshot file into the Claude Code window instead, or give its path as in Your turn. Then ask:This is the link checker's output. Change the last line so it also says how many Markdown files were checked, like "1 broken link(s) in 2 files".Approve the edit if Claude asks. Then, in a second terminal in the same folder, run
npm run linkcheck -- samplesagain. The last line now names the number of files.In the second terminal, run
git diffto see the change. Then set the example's change aside so Your turn starts clean:git stash push --include-untracked -m b-images-examplegit statusthen readsnothing to commit, working tree clean.
Your turn
In the second terminal, run
npm testand take a screenshot of the end of its output: the last few test names and the summary under them. Save it as a file, then move it into your practice copy's.practice/folder. Git ignores that folder, so the image never shows up as a change:mv "<your screenshot file>" .practice/test-summary.pngWSL: Windows saves the file on its own drive, which WSL reaches under
/mnt/c(Working across file systems):C:\Users\<user name>\shot.pngis/mnt/c/Users/<user name>/shot.png.In Claude Code (start
claudeif it isn't running), ask about it by path:Look at this image: .practice/test-summary.png. What does each line of this summary mean?Ask for a small change based on the image, such as a clearer name for one of the tests it shows, and approve the edit if Claude asks. Check it with
git diffin the second terminal.
Check
This Elective has no npm run check: tick each item yourself. You are done when all of these are true:
-
git diffshows the change you asked for from an image. - Self-check (not tested): you added one image by pasting or dragging and another by path (in a Codespace, both by path).
When you're done, set your change aside so the next lesson starts clean: git stash push --include-untracked -m b-images. git status then reads nothing to commit, working tree clean.
Watch out
- An image goes to Claude with your prompt. Crop out anything private, such as tokens, email addresses or customer data, before you paste it.
Go further
- Work with images: more ways to use images, such as design mockups.
Sources: Common workflows · Interactive mode · Development containers · GitHub Codespaces · Take a screenshot on Mac · Working across file systems
Back to the Beginner index · Topic: Memory and context · Stuck on this lesson?