widgets.button
Presses a button on a widget, such as a scoreboard's.
JSON-RPC 2.0project.write
Parameters
- widgetstringrequiredThe widget's id, from widgets.list.
- buttonstringrequiredThe 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.
Example
{ "jsonrpc": "2.0", "id": 1, "method": "widgets.button", "params": {}}lightair call widgets.buttonconst result = lightair.call("widgets.button", {});