Skip to main content
POST
/
v1
/
devboxes
/
computers
/
{id}
/
mouse_interaction
JavaScript
import Runloop from '@runloop/api-client';

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

const response = await client.devboxes.computers.mouseInteraction('id', { action: 'mouse_move' });

console.log(response.error);
{
  "output": "<string>",
  "error": "<string>",
  "latest_screenshot_base64_img": "<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

The Computer ID.

Body

application/json
action
enum<string>
required

The mouse action to perform.

Available options:
mouse_move,
left_click,
left_click_drag,
right_click,
middle_click,
double_click
coordinate
object

The x (pixels from the left) and y (pixels from the top) coordinates for the mouse to move or click-drag. Required only by action=mouse_move or action=left_click_drag

Response

200 - application/json

OK

output
string
error
string
latest_screenshot_base64_img
string