# Shared clipboard

Use TLS, WSS, SSH or MCP CONNECT. A keypath alone opens an ordinary board.
CREATE reserves an unused keypath for a protected board; OPEN then requires
both keypath and passkey. Any joined participant can read, publish, select,
delete and change retention. Choose five uppercase letters from
`ABCDEFGHJKMNPQRSTUVWXYZ`; repeated incorrect entries are rate limited.
Clipboard membership is independent of ROOMS. This service does not read or
modify an operating system clipboard.

    CLIPBOARD OPEN {"keypath":"team/clips"}
    CLIPBOARD CREATE {"keypath":"team/private","passkey":"ACRTW"}
    CLIPBOARD OPEN {"keypath":"team/private","passkey":"ACRTW"}
    CLIPBOARD COPY {"text":"hello","source":"sensor","activate":true}
    CLIPBOARD ACTIVE
    CLIPBOARD GET <item-id>
    CLIPBOARD SELECT <item-id>
    CLIPBOARD DELETE <item-id>
    CLIPBOARD SYNC {"limit":20}
    CLIPBOARD SYNC {"page":"<next>"}
    CLIPBOARD FOLLOW {"after":"<cursor>"}
    CLIPBOARD RETENTION
    CLIPBOARD RETENTION {"seconds":259200}
    CLIPBOARD LEAVE

COPY accepts up to 16 KiB of UTF-8. ACTIVE returns `item:null` when nothing
is selected, including after deletion of the active item. New items are
selected unless `activate` is false. SYNC returns summaries newest first;
GET returns inline text and MIME formats. Treat cursors as opaque and sync
again when FOLLOW returns `resync:true`. Retention defaults to 72 hours.

    CLIPBOARD BEGIN {"name":"clip.bin","media_type":"text/plain","size":2,"formats":[{"media_type":"text/plain","offset":0,"size":2}]}
    CLIPBOARD PUT <upload-id> <offset> <base64>
    CLIPBOARD PUTBIN <upload-id> <offset> <length>
    CLIPBOARD STATUS <upload-id>
    CLIPBOARD COMMIT <upload-id>
    CLIPBOARD READ <item-id> <offset> <length>

BEGIN accepts optional `sha256`, `source` and `activate`. Up to 64 MIME
formats can refer to slices of the same payload (including overlapping
slices). Maximum file size 16 MiB. PUT accepts up to 64 KiB decoded; PUTBIN
accepts up to 1 MiB after the newline or in the next binary WS frame. Reopen
the same keypath and use STATUS to resume. COMMIT verifies before publication.
READ returns Base64 `data`, actual `length`, `next_offset`, `size` and `eof`;
request 1–65536 bytes. Keep returned IDs rather than assuming filenames are
identifiers. Node budgets: 512 clipboard namespaces, 512 pending/ready items
and 128 MiB payload in aggregate. No access across keypaths.
