ClawForge mac-clipboard
Reads the current Mac clipboard (pasteboard) contents to stdout or writes new text to the clipboard using pbcopy/pbpaste. Use when the user asks to copy, paste, read clipboard, write to clipboard, check pasteboard contents, or transfer text via the macOS clipboard.
install
source · Clone the upstream repo
git clone https://github.com/leionion/ClawForge
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/leionion/ClawForge "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/05-Interaction/mac_clipboard" ~/.claude/skills/leionion-clawforge-mac-clipboard && rm -rf "$T"
manifest:
skills/05-Interaction/mac_clipboard/SKILL.mdsource content
mac-clipboard — Clipboard Read/Write
Reads and writes macOS clipboard contents using
pbcopy and pbpaste.
Usage
# Read current clipboard contents python3 mac_clipboard.py # Write text to clipboard python3 mac_clipboard.py "Hello, world!" # Write with explicit -w flag python3 mac_clipboard.py -w "text to copy"
How it works
- Read: calls
and prints clipboard contents to stdoutpbpaste - Write: pipes text to
via stdinpbcopy
Example output
📋 当前剪贴板内容: Hello, world!
On successful write:
✅ 已写入剪贴板