---
title: "Simulate a mouse click action on the host computer"
method: POST
path: "/computer/click_mouse"
---

# Simulate a mouse click action on the host computer

`POST /computer/click_mouse`

## Request body

- ClickMouseRequest
  - `button` 'left' | 'right' | 'middle' | 'back' | 'forward' — Mouse button to interact with
  - `click_type` 'down' | 'up' | 'click' — Type of click action
  - `x` integer, required — X coordinate of the click position
  - `y` integer, required — Y coordinate of the click position
  - `hold_keys` string[] — Modifier keys to hold during the click
  - `num_clicks` integer — Number of times to repeat the click

## Response `200`

Mouse action performed

## Other responses

- `400` — Bad Request
- `500` — Internal Server Error

## Changes

> 52 revisions in range; 4 could not be searched.

- **2025-07-16** `14f0f2044b41` — 1 info
  - endpoint added
- **2025-06-27** `f980a92ab23f` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/kernel/apis/kernel-images-api/changes/computer/click_mouse/post.md)

---

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