# output.cancel

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

> Stops a destination that is reconnecting, so it stops retrying.

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

An AI agent connected over MCP asks the person first, unless **AI agents may go live without asking** is on in **Settings › Remote API**. Other clients aren't asked.

## Parameters

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

## Result

| Name | Type | Required | Description |
|---|---|---|---|
| `cancelled` | `boolean` | no | true. |

## Errors

Not found (-32004) for an unknown destination. A state error (-32005) when it isn't reconnecting.

## Events

- `output.changed`

## From an AI agent

The MCP server's `outputs (action: cancel)` reaches this method. Because it changes what viewers see or hear, Lightair can ask the person first.

## Related

- [output.retry](https://docs.lightair.app/developers/remote-api/output.retry.md)
- [output.stop](https://docs.lightair.app/developers/remote-api/output.stop.md)
