---
title: "Move the mouse cursor to the specified coordinates on the browser instance"
method: POST
path: "/browsers/{id_or_name}/computer/move_mouse"
tags: ["Browser Computer Controls"]
---

# Move the mouse cursor to the specified coordinates on the browser instance

`POST /browsers/{id_or_name}/computer/move_mouse`

## Request

- Base URL: `https://api.onkernel.com`
- URL: `https://api.onkernel.com/browsers/{id_or_name}/computer/move_mouse`
- Auth: HTTP bearer

## Path parameters

- `id_or_name` string, required

## Request body

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

## Response `200`

Mouse cursor moved

## Other responses

- `400`: Bad Request – invalid input
- `404`: Resource not found
- `500`: Internal Server Error
- `default`: Error returned by the browser or its proxy

---

[API](https://skmtc.dev/onkernel/apis/kernel-api.md) - [All operations](https://skmtc.dev/onkernel/apis/kernel-api/llms.txt) - [OpenAPI document](https://skmtc.dev/onkernel/apis/kernel-api/revisions/0f6cf4f58fe6?raw)
