Ask a question to get started
Enter to send•Shift+Enter new line
Write a JSON envelope to stdout and flush.
The envelope is a single-line JSON object with a stable schema:
{"schema_version": 1, "command": "...", "data": ...}
write_json( command: str, data: list | dict, ) -> None
command
str
Self-documenting command name (e.g. 'list', 'threads list').
'list'
'threads list'
data
list | dict
Payload — typically a list for listing commands or a dict for action/info commands.
default=str is used so that Path and datetime objects serialize without error.
default=str
Path
datetime