| name | copy |
| description | Copy text to clipboard. Use /copy to grab the last output, or /copy for whatsapp to format it. Also triggers on "copy that", "clip that", "copy to clipboard". |
| allowed-tools | ["Bash","Read"] |
Copy
Copy text to the user's clipboard via pbcopy.
Two Modes
1. Quick copy: /copy (no arguments)
Copies the most recent substantive text output (message, code, draft, etc.) to the clipboard as plain text. No questions asked.
2. Formatted copy: /copy for whatsapp or with any destination hint
Copies with destination-specific formatting:
for whatsapp - converts markdown to WhatsApp formatting (see table below)
- No destination specified - plain text (strip all markdown markers)
Also activates on natural language: "copy that", "clip that", "copy to clipboard", "send to clipboard".
WhatsApp Formatting Conversion
| Markdown | WhatsApp |
|---|
**bold** | *bold* |
*italic* or _italic_ | _italic_ |
***both*** | _*both*_ |
`code` | `code` |
~~strike~~ | ~strike~ |
[text](url) | text: url |
> quote | > quote |
# Heading | Heading (plain text, no markers) |
- bullet | - bullet |
- nested | - nested |
How to Copy
pbcopy <<'EOF'
YOUR TEXT HERE
EOF
Always use a single-quoted heredoc (<<'EOF'). Handles apostrophes, $, quotes, backslashes, unicode, and emojis safely.
Behavior
- Always confirm with "Copied to clipboard" after copying.
- When WhatsApp formatting is applied, add: "Formatted for WhatsApp - paste into WhatsApp for best results."
- Default to plain text. Strip markdown markers (
**, *, _, #, >, `) and render links as "text (url)". Exception: if the user asks to copy code or markdown literally, preserve as-is.
- Keep messages in Adam's voice (first person "I", never "we").