You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[FEATURE]: pass sessionID into tool.definition hooks #17334
I have verified this feature I'm about to request hasn't been suggested before.
Describe the enhancement you want to request
tool.definition hooks should always receive the active sessionID when tool definitions are built.
Right now that session context is not available consistently across tool listing paths, which makes it hard for plugins to customize tool descriptions or schemas per session. The need is the same across prompt resolution, batch execution, debug tool listing, and /experimental/tool, so those entry points should use one session-aware contract instead of each path behaving differently.
This would also keep the plugin hook contract and generated SDK types aligned with the API behavior.
changed the title [-]tool.definition hooks should receive the active session ID[/-][+][FEATURE]: pass sessionID into tool.definition hooks[/+]on Mar 13, 2026
Activity
[-]tool.definition hooks should receive the active session ID[/-][+][FEATURE]: pass sessionID into tool.definition hooks[/+]github-actions commentedon Mar 13, 2026
Thanks for updating the issue! It now follows our contributing guidelines and has been marked as compliant.
github-actions commentedon Jul 3, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.