# sys_info

What the machine is: host name, OS and version, architecture, CPUs, memory, disks with free space, uptime, the user cmdop runs as and its home folder. Call it before choosing commands for a machine.

**In short:** Risk class [`read`](https://docs.cmdop.ai/reference/tools.md#risk-classes). Over MCP call `sys_info`; over HTTP send `"tool": "sys_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 |
| --- | --- | --- | --- |
| `arch` | `string` | yes | `aarch64`, `x86_64`. |
| `cpus` | `integer` | yes |  |
| `disks` | `object[]` | yes | Mounted file systems with their space, in bytes. |
| `home` | `string` | no |  |
| `hostname` | `string` | yes |  |
| `kernel` | `string` | no |  |
| `memory_available` | `integer` | yes |  |
| `memory_total` | `integer` | yes |  |
| `os` | `string` | yes | `macos`, `linux`, `windows`. |
| `os_version` | `string` | no | OS release, for example `15.5` or `Ubuntu 24.04`. |
| `uptime` | `integer` | yes | Seconds since boot. |
| `user` | `string` | no | The user the machine program runs as. |

## Examples

**MCP**

```json
{
  "name": "sys_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":"sys_info","args":{}}'
```

## Limits

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