Read diagnostics
read_diagnosticsRead the editor's recent log: errors and warnings from the preview runtime (channel scene), the preview host (preview), preview video decoders (preview-video), the web app (web), and the chat. A TypeScript component that throws is switched off rather than breaking the preview, and the reason is logged on channel scene as a [component] line. Decoder failures land on preview-video. Every failed tool call is logged on channel chat as tool failed: , with its input, and the detection and tracking models log downloads, worker boot, and worker errors on channel tracking. Call this when a component does not appear, when preview reports a failure, when a tool call fails, or after a write to confirm nothing complained. Defaults: last 120 seconds, warn and error only, newest 40 lines. Pass channels to narrow, levels to widen to info, sinceSeconds for a longer window, afterSeq to page past a line you already saw.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | Yes | Newest lines to return. Pass null for 40. | |
| levels | Yes | Levels to include. Pass null for error and warn. | |
| afterSeq | Yes | Only lines with a sequence number above this. Pass null to start from the newest. | |
| channels | Yes | Log channels to include, such as scene, preview, web, chat. Pass null for every channel. | |
| projectId | Yes | The project this call runs on without changing the open project. null (or leaving it out) uses the open project. wait_for_jobs takes the projectId of the calls that started the jobs. | |
| sinceSeconds | Yes | How far back to look, in seconds. Pass null for 120. |