# source.get

Source: https://docs.lightair.app/developers/remote-api/source.get

> Gives a source's kind and all its settings, and where a video or playlist is in its playback.

JSON-RPC 2.0 method of Lightair's Remote API (ws://localhost:4455/rpc). Group: Objects and sources. Script plugins need the `project.read` permission.

## Parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `source` | `string` | yes | The source's id or name. |

## Result

| Name | Type | Required | Description |
|---|---|---|---|
| `id` | `string` | no | Its id. |
| `name` | `string` | no | Its name. |
| `kind` | `string` | no | Its kind. |
| `settings` | `object` | no | All its settings. |
| `media` | `{ state: string, time_ms: number, duration_ms: number } | null` | no | A media source's playback. |
| `playlist` | `{ at: number, of: number, file: string } | null` | no | Where 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.

## Related

- [source.update](https://docs.lightair.app/developers/remote-api/source.update.md)
- [media.status](https://docs.lightair.app/developers/remote-api/media.status.md)
