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.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "clipboard_write"
}
}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. |