add_to_clipboard
Append text, URLs, HTML, files, or images to CrossPaste's local clipboard history for later retrieval, without altering the system clipboard.
Instructions
Create a new item in the local clipboard history. This only appends to CrossPaste's history: it does not change the system clipboard and the item is not sent to other devices. Every call creates a new item, even for duplicate content, recorded with source 'MCP'. 'type' defaults to 'text'; supported types: text, url, html, rtf, color, file, image. For file/image, 'content' must be the absolute path of an existing file on this machine (images: png, jpg, jpeg, gif, bmp, webp, heic, heif, tiff, svg); the file is referenced by path, not copied. For color, 'content' may be #RGB, #RRGGBB, #RRGGBBAA, rgb(), rgba(), hsl(), hsla() or a CSS color name. html must contain extractable text and rtf must start with '{\rtf'. On success returns the new item's ID (usable with get_paste_item); on invalid input returns an error and nothing is stored.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | Content type: 'text' (default), 'url', 'html', 'rtf', 'color', 'file', 'image'. Unrecognized values are treated as 'text'. | |
| content | Yes | The content to store, interpreted according to 'type': plain text, a URL, an HTML or RTF document, a color value (e.g. #FF0000), or the absolute path of a file/image. Must not be blank. |