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>"
}Perform the specified mouse interaction on the Computer identified by the given ID.
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>"
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The Computer ID.
The mouse action to perform.
mouse_move, left_click, left_click_drag, right_click, middle_click, double_click 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
Show child attributes
Was this page helpful?