widgets.sound
Plays a sound file through the alert box on air.
JSON-RPC 2.0project.write
Parameters
- filestringThe sound file's path.
- volumenumberIts volume. Default 100.
Errors
A state error (-32005) when there's no alert box on air. Fails (-32000) when widgets aren't available.
From an AI agent
The MCP server's widgets (action: sound) reaches this method.
Example
{ "jsonrpc": "2.0", "id": 1, "method": "widgets.sound", "params": {}}lightair call widgets.soundconst result = lightair.call("widgets.sound", {});