Feature 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.
Feature hasn't been suggested before.
Describe the enhancement you want to request
tool.definitionhooks should always receive the activesessionIDwhen 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.