# capture.targets

Source: https://docs.lightair.app/developers/remote-api/capture.targets

> Lists what a display, window, app, camera or microphone capture can show, each with the settings to use.

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.

Pass an item's `settings` to [object.add](/developers/remote-api/object.add) with the same kind.

## Parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `kind` | `string` | no | `display`, `window`, `app`, `camera` or `microphone`. Default `display`. |

## Result

| Name | Type | Required | Description |
|---|---|---|---|
| `kind` | `string` | no | The kind asked for. |
| `targets` | `{ title: string, detail?: string, settings: object }[]` | no | What can be captured. |

## Errors

Invalid params (-32602) for another kind.

## From an AI agent

The MCP server's `list_capture_targets` reaches this method.

## Example

```json
{ "jsonrpc": "2.0", "id": 1, "method": "capture.targets", "params": { "kind": "microphone" } }
```

Result:

```json
{ "kind": "microphone", "targets": [{ "title": "MacBook Pro Microphone", "detail": "default", "settings": { "device": "MacBook Pro Microphone" } }] }
```

## Related

- [object.add](https://docs.lightair.app/developers/remote-api/object.add.md)
- [audio.add](https://docs.lightair.app/developers/remote-api/audio.add.md)
