# activity.replay

Source: https://docs.lightair.app/developers/remote-api/activity.replay

> Plays an activity item's alert again, as the Alerts widget's replay does.

JSON-RPC 2.0 method of Lightair's Remote API (ws://localhost:4455/rpc). Group: Chat and voice. Script plugins need the `project.write` permission.

## Parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `item` | `string | number` | yes | The item's `id`, or its platform id. |

## Result

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

## Errors

Not found (-32004) for an unknown item. A state error (-32005) when alerts aren't running.

## From an AI agent

The MCP server's `activity (action: replay)` reaches this method.

## Related

- [activity.history](https://docs.lightair.app/developers/remote-api/activity.history.md)
- [widgets.test](https://docs.lightair.app/developers/remote-api/widgets.test.md)
