⌨️additionalContext
Also known as hookSpecificOutput.additionalContext
A hook field that adds a note for Claude to read.
Think of it like
It is like a sticky note in a book. The next reader finds it.
Example
Claude kept editing a generated file. Emma's hook adds a note each time, and Claude edits the source file instead.
Why it matters
It gives Claude the right fact at the right moment, not in a long file it read an hour ago.
Definition
Example code
json
{
"hookSpecificOutput": {
"hookEventName": "PostToolUse",
"additionalContext": "This file is generated. Edit src/schema.ts and run npm run gen instead."
}
}Common mistake
Key takeaways
- 1Text for Claude. Not a chat line.
- 2At the moment it fires. As a reminder.
- 3Capped. 10,000 characters.