> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.doc-detective.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.doc-detective.com/_mcp/server.

# Browser viewport size

> Viewport (page-content) dimensions for this session; the window is resized so the content area matches. Takes precedence over `size` when both are set.

Viewport (page-content) dimensions for this session; the window is resized so the content area matches. Takes precedence over `size` when both are set.

## Referenced In

* [Browser descriptor](/reference/schemas/browser-descriptor)

## Fields

| Field  | Type    | Description                          | Default |
| :----- | :------ | :----------------------------------- | :------ |
| width  | integer | Optional. Viewport width in pixels.  | —       |
| height | integer | Optional. Viewport height in pixels. | —       |

## Examples

```json
{
  "width": 42,
  "height": 42
}
```