source.get
Gives a source's kind and all its settings, and where a video or playlist is in its playback.
JSON-RPC 2.0project.read
Parameters
- sourcestringrequiredThe source's id or name.
Result
- idstringIts id.
- namestringIts name.
- kindstringIts kind.
- settingsobjectAll its settings.
- media{ state: string, time_ms: number, duration_ms: number } | nullA media source's playback.
- playlist{ at: number, of: number, file: string } | nullWhere a playlist is.
Errors
Not found (-32004) for an unknown source.
From an AI agent
The MCP server's get_source or source (action: get) reaches this method.
Example
{ "jsonrpc": "2.0", "id": 1, "method": "source.get", "params": {}}lightair call source.getconst result = lightair.call("source.get", {});