diagnostics
DiagnosticsRead-only
The app's own health, for debugging it.
Available at every access level, including a client that sent X-Access-Level: readonly.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
action | string one of "memory", "log", "playback", "watchers", "clients" | yes | What to do. memory: Managed heap, RSS, GC and cache sizes. (force_gc) log: The newest lines of the app's log. Entries that name anything in a hidden folder are left out, and counted in left_out_hidden. (lines) playback: What the open video or audio editor is playing: playing, playhead_ms, duration_ms, speed; for a video, sound (what plays its sound: engine, the playback engine playing its tracks; mix, a rendered mix; footage, the footage's own sound) and picture (what plays its picture: engine, the platform's playback engine; managed, the app's own decoders); and for audio or a video played through the playback engine what it has counted since the recording was opened: underruns (the sound ran dry mid-play), clipped_frames (sent at or over full scale), the callback's block size, device_restarts (the output device changed and the new one was opened), output_peak_db (the loudest sample in the meter's last reading, 0 being full scale; absent when silent) and clip_light (on since something clipped, until the user clicks it or playback starts again). watchers: The file watchers, as Settings → Advanced → Watching lists them: each folder (or open document) watched for changes made outside the app, by kind (Library, Linked folder, Folder Watch, Open document), whether it's watching now and since when, and its last problem (a lost-events overflow, a folder it may not read) and when. clients: The MCP clients seen since SuperCapture started, most recent first: name, version, transport, toolsets, when it started and was last seen, calls made, and whether it has ended. Never a session id or a token. |
force_gc | boolean | no | memory: collect first and report what was reclaimed. |
lines | integer | no | log: how many of the newest lines (default 100). |
Example
A JSON-RPC call to POST http://localhost:21516/mcp with the bearer token, filling in the required parameters:
{ "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "diagnostics", "arguments": { "action": "memory" } }}See the MCP server overview for how to connect a client and where the token lives.