# screen_info

What can be seen and driven on this machine: displays with size and scale, the frontmost app, the cursor, whether the screen is locked, whether the OS permissions for capture and input are granted, and whether control is paused. Text only. Call it first in a session.

**In short:** Risk class [`screen`](https://docs.cmdop.ai/reference/tools.md#risk-classes). Over MCP call `screen_info`; over HTTP send `"tool": "screen_info"` to [`POST /api/v1/call`](https://docs.cmdop.ai/reference/http/post-call.md).

## Arguments

Over MCP every tool also takes `machine`: the machine's name or id, optional when only one machine is online.

No other arguments.

## Result

| Name | Type | Required | Meaning |
| --- | --- | --- | --- |
| `backend` | `string` | yes | Which backend runs here: `x11`, `macos`. |
| `control_paused` | `boolean` | yes | The owner paused control on this machine. |
| `cursor` | `object` | no |  |
| `displays` | `object[]` | yes |  |
| `frontmost_app` | `string` | no |  |
| `locked` | `boolean` | yes | The screen is locked or asleep: captures and input will fail with `screen_locked`. |
| `permissions` | `object` | yes |  |

## Examples

**MCP**

```json
{
  "name": "screen_info",
  "arguments": {
    "machine": "<machine>"
  }
}
```

**HTTP**

```bash
curl -sS -X POST "https://<contour>.cmdop.ai/api/v1/call" \
  -H "Authorization: Bearer $CMDOP_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"machine":"<machine>","tool":"screen_info","args":{}}'
```

## Limits

The call times out after 10 s (`timed_out`). Available since version 0.0.2. A refused or failed call returns one of the [error codes](https://docs.cmdop.ai/reference/errors.md).
