/clipboard-mcp-server:clipboard-guidefrom clipboard-mcp-server
Gates for the clipboard_* tools (clipboard_read, clipboard_write, clipboard_inspect) — choosing a format when auto would return an image, paging large text or images by nextOffset and representationId, telling an empty clipboard from content the server cannot return, and replacing the clipboard without losing what the user copied. Use when reading what the user copied, putting text or HTML on their clipboard, or when a clipboard_read result is not what was expected.
Ships in clipboard-mcp-server. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
The clipboard_* tools reach the clipboard of the machine the server process runs on. That is the user's own clipboard only when the server runs locally, inside their desktop session; a server reached over HTTP on another host reads that host's clipboard.
What the user last copied can be a password or a token. Read the clipboard when the task is about it, and quote back only what the task needs.
Copied files are outside the surface: no format carries a file reference, so a copied file shows up only in clipboard_inspect's rawTypes (a file URL type), plus whatever text or image the copying app publishes beside it.
When clipboard_write is missing from the tool list, the deployment is read-only (CLIPBOARD_READ_ONLY). Tell the user writing is disabled; there is no other write path.
| Identifier | Comes from | Carries |
|---|---|---|
Format name (text, html, rtf, image) | clipboard_inspect's availableFormats, or the format a clipboard_read response reports | Which representation to read |
nextOffset | The previous clipboard_read response; absent once complete is true | Where the next slice starts |
representationId | Every clipboard_read response | The value and format a slice was cut from; the same token on any slice of an unchanged value |
primaryFormat: "empty" with a non-empty rawTypes list means something is on the clipboard in types this server cannot return: a copied file, an app-private type, or on Linux an image offered only as JPEG or BMP (only image/png counts there). Describe what rawTypes shows instead of telling the user the clipboard is empty.com.apple.flat-rtfd before public.rtf; flat RTFD is a binary package, so the result can be unreadable. HTML a source published as UTF-16 comes out garbled the same way. Prefer "html" or "text" unless the user needs RTF itself, and switch formats when the content reads as noise.previousContent restores plain text up to 512 KB and nothing else: an image, the HTML or RTF of a rich copy, and longer text are gone. Write only when the user asked for the clipboard to change; when clipboard_inspect shows an image or rich content they have not said to discard, confirm first.nextOffset, never a computed offset. Text, HTML, and RTF slices end on whole UTF-8 characters, so a slice can run up to 3 bytes short of the limit and nextOffset is not offset + limit. An offset that lands mid-character drops that character's bytes without an error.public.png, public.tiff, a device-independent bitmap). Read, and let content_too_large (its data carries bytes and limit) decide whether to slice.An explicit format reads directly; "auto" runs a full inspection before every read. Call clipboard_inspect on its own only when the choice depends on sizes, rawTypes, or whether anything is there at all — not as a ritual before an "auto" read that inspects anyway.
nextOffset, the previous representationId, and the format the first response reported. Not "auto": it re-inspects each call and can resolve to another format, which fails as representation_changed.complete is true. Text: join the content strings in order. Image: base64-decode each slice on its own and concatenate the bytes in offset order.representation_changed means the clipboard now holds a different value (on macOS, a source re-publishing identical content also counts): discard what you have and restart at offset 0 with no representationId. format_unavailable mid-way means the clipboard was emptied or no longer offers that format; ask the user to copy again.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
clipboard-mcp-server@cyanheads is listed by cyanheads/cyanheads — review the source before installing
npx claudepluginhub cyanheads/cyanheads --plugin clipboard-mcp-server