Clipboard Paste
Clipboard
Clipboard Paste
Dispatch a real Ctrl+V paste event into a selector or the currently focused element.
POST
Clipboard Paste
Overview
Pastes into the page by dispatching a native Ctrl+V keystroke (Cmd+V on macOS targets) against the session. Ifselector is provided the target element is focused first; otherwise the keystroke is delivered to whatever element is currently focused. If text is provided it is placed on the clipboard immediately before the paste event fires, so this endpoint can both set and paste in a single call.
Path Parameters
Browser session ID (UUID).
Body
CSS selector of the element to paste into. Defaults to the currently focused element.
Optional text to place on the clipboard right before pasting. Maximum 1 MiB.
Example Request
Response
Success Response (200)
True when the paste event was dispatched.
Error Responses
| Status | Description |
|---|---|
400 | Invalid body — selector didn’t match, or text exceeded 1 MiB. |
401 | Unauthorized — invalid or missing API key. |
404 | Session not found or not owned by the caller. |