Clatter LabsHelp Center

What does Line CLI's JSON output look like?

ReferenceUpdated
line -p "list the TODOs" --output-format json

prints one object at the end:

{
  "type": "result", "subtype": "success", "is_error": false,
  "result": "…", "error": null, "session_id": "…",
  "num_steps": 4, "duration_ms": 18234,
  "usage": { "input_tokens": 0, "output_tokens": 0, "cached_tokens": 0, "cache_hit": 0.0 },
  "total_cost_usd": 0.0123, "edits": { "total": 0, "failed": 0 },
  "model": "auto", "version": "0.9.0-beta"
}

subtype is success, error_max_turns, error_max_budget, error_during_execution or interrupted. Costs are list prices.

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.