Skip to main content
POST
/
browsers
/
{id}
/
computer
/
clipboard
/
read
JavaScript
import Kernel from '@onkernel/sdk';

const client = new Kernel({
  apiKey: process.env['KERNEL_API_KEY'], // This is the default and can be omitted
});

const response = await client.browsers.computer.readClipboard('id');

console.log(response.text);
{
  "text": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

Browser session ID

Response

Clipboard content read successfully

text
string
required

Current clipboard text content