Clatter LabsHelp Center

How does --output-format stream-json work?

ReferenceUpdated

Each line is a JSON event:

typeMeaning
system (subtype: init)Session id, model, effort, folder, tools, version
textA piece of the answer
tool_use / tool_resultA tool started / finished (ok, summary)
usageInput, output and cached tokens for a step
retryA retry with attempt, max, wait and reason
noteA notice from Line
permission_deniedSomething needed approval and was declined
resultThe final result object (same as json)

Use it to show live progress in your own tools.

Related articles

Still need help?

Tried the steps above and still stuck? Email us. We usually reply within the first hour, and always within 24 hours. A full support team is with you.

Infrastructure questions, or permanent deletion of your data
infrastructure@clatterlabs.xyz
For deleting your whole account or the data of one service.