---
title: "Perform mouse interaction on a Computer."
method: POST
path: "/v1/devboxes/computers/{id}/mouse_interaction"
tags: ["Computer", "Computer Interaction"]
---

# Perform mouse interaction on a Computer.

`POST /v1/devboxes/computers/{id}/mouse_interaction`

Perform the specified mouse interaction on the Computer identified by the given ID.

## Path parameters

- `id` string, required

## Request body

- MouseInteraction
  - `action` 'mouse_move' | 'left_click' | 'left_click_drag' | 'right_click' | 'middle_click' | 'double_click', required
  - `coordinate` MouseCoordinate
    - `x` integer, required — The x coordinate (pixels from the left) for the mouse to move or click-drag.
    - `y` integer, required — The y coordinate (pixels from the top) for the mouse to move or click-drag.

## Response `200`

OK

- ComputerInteractionResult
  - `output` string
  - `error` string
  - `latest_screenshot_base64_img` string

---

[API](https://skmtc.dev/runloopai/apis/runloop-api.md) · [All operations](https://skmtc.dev/runloopai/apis/runloop-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/runloopai/runloop-api/revisions/d1cc15eb5ef9/schema)
