Skip to main content
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

string
required
Browser session ID (UUID). Create via POST /browser/sessions.

Body

string
required
UTF-8 text to place on the session clipboard. Maximum 1 MiB (1,048,576 bytes).

Example Request

Response

Success Response (200)

boolean
True when the clipboard contents were replaced successfully.
integer
Number of bytes written (UTF-8 encoded length of text).
Example Response:

Error Responses