# output.set_enabled

Source: https://docs.lightair.app/developers/remote-api/output.set_enabled

> Sets whether going live includes a destination.

JSON-RPC 2.0 method of Lightair's Remote API (ws://localhost:4455/rpc). Group: Outputs. Script plugins need the `outputs.control` permission.

## Parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `output` | `string` | yes | A destination's id or name. |
| `enabled` | `boolean` | yes | Included or not. |

## Result

| Name | Type | Required | Description |
|---|---|---|---|
| `enabled` | `boolean` | no | As set. |

## Errors

Not found (-32004) for an unknown destination. Invalid params (-32602) without `enabled`.

## Events

- `workspace.changed`

## From an AI agent

The MCP server's `outputs (action: enable or disable)` reaches this method.

## Example

```json
{ "jsonrpc": "2.0", "id": 1, "method": "output.set_enabled", "params": { "output": "YouTube", "enabled": false } }
```

Result:

```json
{ "enabled": false }
```

## Related

- [stream.start](https://docs.lightair.app/developers/remote-api/stream.start.md)
- [output.list](https://docs.lightair.app/developers/remote-api/output.list.md)
