import Kernel from '@onkernel/sdk';
const client = new Kernel({
apiKey: process.env['KERNEL_API_KEY'], // This is the default and can be omitted
});
await client.browsers.computer.moveMouse('id', { x: 0, y: 0 });{
"code": "bad_request",
"message": "Missing required field: app_name",
"details": [
{
"code": "invalid_input",
"message": "Provided version string is not semver compliant"
}
],
"inner_error": {
"code": "invalid_input",
"message": "Provided version string is not semver compliant"
}
}import Kernel from '@onkernel/sdk';
const client = new Kernel({
apiKey: process.env['KERNEL_API_KEY'], // This is the default and can be omitted
});
await client.browsers.computer.moveMouse('id', { x: 0, y: 0 });{
"code": "bad_request",
"message": "Missing required field: app_name",
"details": [
{
"code": "invalid_input",
"message": "Provided version string is not semver compliant"
}
],
"inner_error": {
"code": "invalid_input",
"message": "Provided version string is not semver compliant"
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Browser session ID
X coordinate to move the cursor to
Y coordinate to move the cursor to
Modifier keys to hold during the move
Use human-like Bezier curve path instead of instant mouse movement.
Target total duration in milliseconds for the mouse movement when smooth=true. Omit for automatic timing based on distance.
50 <= x <= 5000Mouse cursor moved