> ## Documentation Index
> Fetch the complete documentation index at: https://docs.simular.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# ScreenshotCropped

# Function: screenshotCropped()

> **screenshotCropped**(`x`, `y`, `width`, `height`, `hideCursor`): [`Screenshot`](../classes/Screenshot.mdx)

Defined in: [index.d.ts:1675](https://github.com/simular-ai/simulang-js-internal/blob/d2b85c3277cbb16ce50c0781e1db8ad2c8a5690e/index.d.ts#L1675)

Takes the screenshot of a cropped region of the workspace.

## Parameters

### x

`number`

### y

`number`

### width

`number`

### height

`number`

### hideCursor

`boolean`

## Returns

[`Screenshot`](../classes/Screenshot.mdx)
