# widgets.button

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

> Presses a button on a widget, such as a scoreboard's.

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 |
|---|---|---|---|
| `widget` | `string` | yes | The widget's id, from widgets.list. |
| `button` | `string` | yes | The button. |

## Errors

Invalid params (-32602) without `widget` and `button`, or when widgets aren't available.

## From an AI agent

The MCP server's `widgets (action: button)` reaches this method.

## Related

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