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

const client = new Kernel({
  apiKey: 'My API Key',
});

await client.browsers.computer.clickMouse('id', { x: 0, y: 0 });
This response does not have an example.

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

Body

application/json
x
integer
required

X coordinate of the click position

y
integer
required

Y coordinate of the click position

button
enum<string>

Mouse button to interact with

Available options:
left,
right,
middle,
back,
forward
click_type
enum<string>

Type of click action

Available options:
down,
up,
click
hold_keys
string[]

Modifier keys to hold during the click

num_clicks
integer
default:1

Number of times to repeat the click

Response

Mouse action performed

I