Copy to Clipboard
Arguments
code
$ARGUMENTS
Instructions
No Arguments / "last response"
Copy Claude's last response to the clipboard.
File Path
If arguments look like a file path (starts with /, ~, ./, or contains common extensions):
- •Read the file with Read tool
- •Pipe contents to
pbcopy
Literal Content
Copy the provided text directly to clipboard.
Implementation
bash
pbcopy << 'EOF' [content to copy] EOF
Examples
code
/copy → copy last response /copy last response → copy last response /copy ~/notes.txt → copy file contents /copy Hello, world! → copy literal text /copy the function above → copy referenced code block