# control_release

Give control back: release held keys and buttons and end the lease, so the owner can use the machine at once. The lease also ends after 60 s without an input call.

**In short:** Risk class [`control`](https://docs.cmdop.ai/reference/tools.md#risk-classes). Over MCP call `control_release`; over HTTP send `"tool": "control_release"` 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 |
| --- | --- | --- | --- |
| `released` | `boolean` | yes | A lease was held and is given back. |

## Examples

**MCP**

```json
{
  "name": "control_release",
  "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":"control_release","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).
