Detailed API reference for each session hook in the GitHub Copilot SDK.
- Hooks overview: quick start, common patterns, and hook invocation context
- Pre-tool use: approve, deny, or modify tool calls
- Post-tool use: transform tool results
- User prompt submitted: modify or filter user messages
- User prompt transformed: inspect or replace model-facing prompts
- Session lifecycle: session start and end
- Error handling: custom error handling