answerHook
answerHook(
harness,event,answer):object
Defined in: index.d.ts:131
What a hook command writes for answer (Claude Code’s answer JSON), in harness’s form.
Parameters
Section titled “Parameters”harness
Section titled “harness”string
string
answer
Section titled “answer”Returns
Section titled “Returns”object
exit:
number
stderr
Section titled “stderr”stderr:
string|null
stdout
Section titled “stdout”stdout:
string