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

# Get Page Rectangle

> Get the bounding rectangle dimensions of the current browser page

The Get Page Rectangle command (Command Type: 20) retrieves the bounding rectangle (width, height, and position) of the current browser page.

## Command Type

**Command Type ID:** 20

## Parameters

| Parameter   | Type   | Description             | Required |
| ----------- | ------ | ----------------------- | -------- |
| **timeout** | number | Timeout in milliseconds | Yes      |

## Usage Examples

### Get Page Dimensions

```json theme={null}
{
  "command": "get-page-rectangle",
  "params": {
    "timeout": 5000
  }
}
```

## Common Use Cases

* **Viewport Awareness**: Determine page size before calculating element positions
* **Scroll Calculations**: Use page dimensions to calculate scroll targets

## Related Commands

* [Get Elements Positions](/stream/commands/browser/get-elements-positions) - Get positions of specific elements
* [Get Full Elements Positions](/stream/commands/browser/get-full-elements-positions) - Full element positions with viewport info
