Clipboard Write
Clipboard
Clipboard Write
Write UTF-8 text to the session’s sandbox OS clipboard. Survives navigation and works before any page is loaded.
POST
Clipboard Write
Overview
Places UTF-8 text on the operating system clipboard inside the session’s sandbox. The value survives navigation, tab switches, and page reloads, and can be written before any page has loaded. Maximum payload is 1 MiB, measured as UTF-8 byte length.Path Parameters
Browser session ID (UUID). Create via
POST /browser/sessions.Body
UTF-8 text to place on the session clipboard. Maximum 1 MiB (1,048,576 bytes).
Example Request
Response
Success Response (200)
True when the clipboard contents were replaced successfully.
Number of bytes written (UTF-8 encoded length of
text).Error Responses
| Status | Description |
|---|---|
400 | Invalid body — text missing, not a string, or exceeds 1 MiB. |
401 | Unauthorized — invalid or missing API key. |
404 | Session not found or not owned by the caller. |