---
title: "Move the mouse cursor to the specified coordinates on the host computer"
method: POST
path: "/computer/move_mouse"
---

# Move the mouse cursor to the specified coordinates on the host computer

`POST /computer/move_mouse`

## Request body

- MoveMouseRequest
  - `x` integer, required — X coordinate to move the cursor to
  - `y` integer, required — Y coordinate to move the cursor to
  - `hold_keys` string[] — Modifier keys to hold during the move
  - `smooth` boolean — Use human-like Bezier curve path instead of instant mouse movement.
  - `duration_ms` integer — Target total duration in milliseconds for the mouse movement when smooth=true. Omit for automatic timing based on distance.

## Response `200`

Mouse cursor moved

## Other responses

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

## Changes

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

- **2026-02-23** `a881622dd82b` — 2 info
  - added the new optional request property `duration_ms`
  - added the new optional request property `smooth`
- **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/move_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)
