Skip to content

Inspect a running stream

Find out what a running stream is really doing with tatolab streams, graph and logs and Tato Studio's Node visualizer, and match common symptoms to the place that explains them.

A few commands show you a running stream from the outside, without changing it or slowing it down. They work on any stream the runtime holds, and you run them on the machine the stream runs on.

Command Answers
tatolab streams Which streams are loaded, and which failed and why? Is a load still under way?
tatolab graph What nodes and links exist, and are they healthy? Is anything losing data?
tatolab logs What did the project’s streams and loads say?
Tato Studio’s Node visualizer What does this port carry right now?

The examples use the tutorial’s motion-watcher stream.

Lists every stream the runtime holds, with its ID, display name and state. A stream that’s still loading is preparing, and the line under the table says which step it’s on: making_the_venv, reading_the_graph_documents, starting or stopping. A failed stream’s reason is printed under the table too. See Manage projects.

Prints the live graph as JSON. Without arguments you get every stream on the machine, under the machine’s name; with --stream, one stream’s graph, by its ID:

Terminal window
tatolab graph --stream motion-watcher-main-3f2a9c

The parts you’ll use most:

Path Holds
.nodes[].id, .nodes[].name, .nodes[].type Each node’s UUID, its name in the stream, and its type (nodes.motion_detector:MotionDetector, or tatolab.camera:CameraSource for a module’s)
.nodes[].components.state The node’s state; Running when healthy
.nodes[].components.metrics Counters, including the messages each output wrote and the messages dropped on each inbound link
.nodes[].components.failed_because Why a node in Error failed, in the words of what failed it
.nodes[].components.process_raising_because What its process raised, while it keeps raising
.nodes[].components.not_ready_because Why the node reports itself not ready, such as a setting left unset
.links[].state wired when working; pending while connecting; error when it failed
.links[].error_reason Why a link failed
.machine This machine’s name, when you ask for every stream

Some jq recipes:

Terminal window
S=motion-watcher-main-3f2a9c
# Every node and its state
tatolab graph --stream $S | jq -r '.nodes[] | "\(.name) \(.components.state)"'
# Links that aren't working, and why
tatolab graph --stream $S | jq '.links[] | select(.state != "wired")'
# Each node's counters
tatolab graph --stream $S | jq '.nodes[] | {name, metrics: .components.metrics}'

Losses are always counted. If a slow reader drops messages, the count shows in that node’s metrics, per link (dropped_bags_by_link), so a stream that has lost most of its frames can’t look healthy.

In the project’s folder:

Terminal window
tatolab logs -f

Reads the project’s log: Rust and Python records from every stream of the project, and the lines each action wrote while it made the .venv and read the graph documents. -f keeps following. Filters:

Flag Shows
--dir <DIR> Another project’s log than the current folder’s
--stream <stream> Only one stream’s records, by its ID or a display name only it has
--action <ID> Only one stream action’s records, such as the open tatolab open printed
--level warn Warnings and errors only (trace, debug, info, warn, error)
--source python Only your Python nodes (or rust for the runtime and built-ins)
--node-run-id <ID> Only one run of one node, by the node_run_id its records carry
--intercepted-only Only output captured from print(), stdout and stderr

The log lives in the project’s .tatolab/logs/ folder, as JSON Lines, so it holds records from streams that have stopped, and from before the runtime last restarted. Logs covers the format, and shipping it to other tools.

In Tato Studio, open any output in the Node visualizer to see what it carries now: a picture straight from the GPU, with no copy and no encoding. The Node visualizer reads the port on this machine, and a stream that isn’t playing says why: stopped, paused, still preparing, or a failed node.

Symptom Look at
A stream isn’t in tatolab streams Was the project opened? tatolab logs --action <ID>, with the ID open printed, shows what it did.
A stream stays preparing The step under the table. making_the_venv downloads Python and your dependencies the first time; tatolab logs -f shows uv’s progress.
A stream is failed The reason under tatolab streams, and the traceback in tatolab logs --level error
A node isn’t running components.failed_because in graph, and logs --level error
A link shows error .links[].error_reason in graph
Frames are being dropped metrics in graph shows where; the reader on that link can’t keep up
The Node visualizer is blank graph: is every node Running, and is any not_ready_because set? Then logs --level warn.
A track never reaches the relay The gateway’s records in logs --level warn: one that can’t reach its relay says why

Every command here is also a tool an AI agent can call. Connect one with claude mcp add tatolab -- tatolab mcp, and ask it why a stream failed. See Agents and MCP.