Skip to main content
POST
/
v1
/
devboxes
/
computers
/
{id}
/
screen_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.screenInteraction('id', { action: 'screenshot' });

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 screen action to perform.

Available options:
screenshot,
cursor_position

Response

200 - application/json

OK

output
string
error
string
latest_screenshot_base64_img
string