Add optional tool context to request_user_input

Add optional tool/arguments fields to request_user_input events and app-server tool/requestUserInput params, then wire MCP approval flows to populate and forward them.
This commit is contained in:
Eric Horacek
2026-02-13 15:08:12 -08:00
parent d876f3b94f
commit 5620d7431a
16 changed files with 114 additions and 7 deletions

View File

@@ -549,6 +549,7 @@
"ToolRequestUserInputParams": {
"description": "EXPERIMENTAL. Params sent with a request_user_input event.",
"properties": {
"arguments": true,
"itemId": {
"type": "string"
},
@@ -561,6 +562,12 @@
"threadId": {
"type": "string"
},
"tool": {
"type": [
"string",
"null"
]
},
"turnId": {
"type": "string"
}