---
title: "Simulate a mouse click action on the browser instance"
method: POST
path: "/browsers/{id_or_name}/computer/click_mouse"
tags: ["Browser Computer Controls"]
---

# Simulate a mouse click action on the browser instance

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

## Request

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

## Path parameters

- `id_or_name` string, required

## Request body

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

## Response `200`

Mouse action performed

## 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/kernel/apis/kernel-api.md) - [All operations](https://skmtc.dev/kernel/apis/kernel-api/llms.txt) - [OpenAPI document](https://skmtc.dev/kernel/apis/kernel-api/revisions/0f6cf4f58fe6?raw)
