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>"
}Perform the specified screen 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.screenInteraction('id', { action: 'screenshot' });
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 screen action to perform.
screenshot, cursor_position Was this page helpful?