{"version":"2.1.281","anchor":"hooks-worker-payload-carries-state","canonical_anchor":"hooks-worker-payload-carries-state","heading":"Hooks worker payload carries state","tier":"internal","area":"Hooks","url":"https:\/\/changelogs.core-directive.com\/v\/2.1.281\/e\/hooks-worker-payload-carries-state","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.281","markdown":"### Hooks worker payload carries state\n\nThe data sent to function hooks can now include an optional state field alongside events, calls and env\n\n**Unclear.** The finding does not say what goes into the state field or when it is filled in.\n\n**What**\n\nHooks are your own code that Claude Code runs at set moments. The data Claude Code sends to function hooks can now include an optional `state` field, next to the existing `events`, `calls` and `env` fields.\n\n**Why**\n\nThe hook payload can now carry one more piece of information than before.\n\n- Area: Hooks\n- Tier: Under the hood\n- Useful: 2\/5\n- Signal: 3\/5"}