Structured Output¶
Automatic JSON¶
When stdout is not a TTY (piped or called by an agent), td outputs structured JSON automatically:
# Human in terminal sees a pretty table
td ls
# Agent piping output gets JSON
td ls | jq '.data[].content'
Three Output Modes¶
Force a specific format with flags:
Or set a default:
Response Format¶
All JSON responses follow the same envelope:
The type field identifies the response kind: task_list, task, success, project_list, etc.