Skip to content
Changelog

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

  • kindstringdisplay, window, app, camera or microphone. Default display.

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

ws://localhost:4455/rpc
{
"jsonrpc": "2.0",
"id": 1,
"method": "capture.targets",
"params": {
"kind": "microphone"
}
}

Result

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

object.add · audio.add