---
title: "Get the current mouse cursor position on the browser instance"
method: POST
path: "/browsers/{id_or_name}/computer/get_mouse_position"
tags: ["Browser Computer Controls"]
---

# Get the current mouse cursor position on the browser instance

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

## Request

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

## Path parameters

- `id_or_name` string, required

## Response `200`

Current mouse position

- MousePositionResponse
  - `true` integer: Y coordinate of the cursor
  - `x` integer, required: X coordinate of the cursor

## 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)
