Write Clipboard
clipboard_writeWrite text or file paths to the macOS clipboard, replacing existing contents.
Instructions
Replace the system clipboard contents with text, or with file references (native helper only — no CLI fallback exists for file references). Uses the native helper (NSPasteboard); falls back to pbcopy (text only) if the helper is unavailable. Overwrites whatever is currently on the clipboard. No permission required.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | Text to place on the clipboard. Provide this or filePaths. | |
| filePaths | No | Absolute file paths to place on the clipboard as file references. Requires the native helper. |