Great feature request! Having additional_context available on beforeSubmitPrompt would indeed open up a lot of powerful workflow automations.
However, just a heads-up to @mibogo and the dev team: the additional_context functionality you mentioned for postToolUse is actually completely broken in the current builds (e.g., 3.1.15).
Currently, the postToolUse hook suffers from empty input payloads (no stdin, argv, or env vars), the output context is completely discarded and never reaches the model, and it fires very intermittently.
So while I completely support adding this to beforeSubmitPrompt, the engineering team urgently needs to fix the underlying hook infrastructure first. We are tracking the major bugs with the existing implementation here:
Once the core plumbing is fixed, expanding it to beforeSubmitPrompt would be amazing!