capture.targets
Lists what a display, window, app, camera or microphone capture can show, each with the settings to use.
JSON-RPC 2.0project.read
Pass an item's settings to object.add with the same kind.
Parameters
- kindstring
display,window,app,cameraormicrophone. Defaultdisplay.
Result
- kindstringThe kind asked for.
- targets{ title: string, detail?: string, settings: object }[]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
{ "jsonrpc": "2.0", "id": 1, "method": "capture.targets", "params": { "kind": "microphone" }}lightair call capture.targets '{"kind":"microphone"}'const result = lightair.call("capture.targets", {"kind":"microphone"});Result
{ "kind": "microphone", "targets": [{ "title": "MacBook Pro Microphone", "detail": "default", "settings": { "device": "MacBook Pro Microphone" } }] }