stream.stop
Ends the stream on every destination.
JSON-RPC 2.0Changes what viewers see or hearoutputs.control
An AI agent connected over MCP asks the person first, unless AI agents may go live without asking is on in Settings › Remote API. Other clients aren't asked.
Parameters
None.
Result
- activebooleanfalse.
Errors
A state error (-32005) when not live.
Events
Subscribers to events get stream.state, output.changed.
From an AI agent
The MCP server's streaming (action: stop) reaches this method. Because it changes what viewers see or hear, Lightair can ask the person first: see the MCP server for when it asks.
Example
{ "jsonrpc": "2.0", "id": 1, "method": "stream.stop", "params": {}}lightair call stream.stopconst result = lightair.call("stream.stop", {});Result
{ "active": false }