Output
What a program prints or returns after it runs: a text, a result, an error message.
How it appears in the course
For finer control, the hook can write a JSON answer on stdout (“standard output”, where a program writes its normal result). For example, "decision": "block" with a "reason" (the reason for blocking). Or additionalContext, to give Claude extra information.
--output-format json asks for the answer as a “form”.
With --output-format json you get a “form” with the answer, the cost and the session_id.
Learn Claude Code from zero, in plain English
12 modules with 1–2 minute lessons, which you can also do on your phone. The first two modules are free.