I’m using the SDK and need a way to invoke a notification from inside a tool call so I can stream progress updates back to the user. Right now the tool handler doesn’t have access to the request context, so I can’t call the function.
Is there an existing API or pattern for this? If context injection in tools isn’t supported yet, I’d be happy to help implement it.
I’m using the SDK and need a way to invoke a notification from inside a tool call so I can stream progress updates back to the user. Right now the tool handler doesn’t have access to the request context, so I can’t call the function.
Is there an existing API or pattern for this? If context injection in tools isn’t supported yet, I’d be happy to help implement it.