Clipboard

Read or write the macOS clipboard. Use when copying/pasting text, transferring data between apps, or accessing clipboard contents.

mikeyobrien Updated

File contents

Clipboard Operations

Read clipboard

pbpaste

Write to clipboard

echo "text to copy" | pbcopy

Copy file contents

pbcopy < file.txt

Copy command output

ls -la | pbcopy

Returns the clipboard contents as plain text. Binary/image data is not supported via these commands.

mikeyobrien/rho/tree/main/platforms/macos/skills/clipboard commit d85177bc9c

Frequently asked questions

npx skillmds@latest add mikeyobrien/clipboard-2