# widgets.test

Source: https://docs.lightair.app/developers/remote-api/widgets.test

> Sends a test event to the widgets, as if a viewer had followed, subscribed or paid.

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

## Parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `kind` | `string` | no | The event's kind, such as `follow`, `sub` or `paid`. Default `follow`. |
| `platform` | `string` | no | The platform it seems to come from. Default `twitch`. |

## Errors

Fails (-32000) when widgets aren't available.

## From an AI agent

The MCP server's `test_event` reaches this method.

## Example

```json
{ "jsonrpc": "2.0", "id": 1, "method": "widgets.test", "params": { "kind": "sub" } }
```

Result:

```json
{}
```

## Related

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