Execute actions like mouse movements, clicks, keyboard input, and screenshots in the Bytebot desktop environment.

Request

action
string
required

The type of computer action to perform. Must be one of: move_mouse, click_mouse, drag_mouse, scroll, press_key, type_text, wait, screenshot, cursor_position.

Mouse Actions

Keyboard Actions

System Actions

Response

success
boolean

Indicates if the operation was successful.

data
object

Action-specific response data.

error
string

Error message if success is false.

Response Examples

Code Examples

curl -X POST http://localhost:9990/computer-use \
  -H "Content-Type: application/json" \
  -d '{"action": "move_mouse", "coordinates": {"x": 100, "y": 200}}'