Command reference ยท Claude Code
/copy
Copies Claude's last response to the clipboard.
Copies Claude's last response to the clipboard. With a number N, the N-th-to-last response is copied. For code blocks, an interactive picker appears; key 'w' writes to a file (useful over SSH).
โ WHEN TO USE IT?
Grab the last response directly into the clipboard
/copy after a response containing a finished code snippet
Write the response to a file instead, over SSH without a working clipboard
/copy, then press 'w' to export to a file
โ WHEN NOT TO?
Wanting to copy an older response, not the last one
without a number argument, /copy always copies only the last response
Better: use /copy 3 for the third-to-last response, or /export for the whole conversation
SOURCES
- Claude Code Doku (offiziell) โ code.claude.com