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

@@ -2064,6 +2064,7 @@
},
{
"properties": {
"arguments": true,
"call_id": {
"description": "Responses API call id for the associated tool call, if available.",
"type": "string"
@@ -2074,6 +2075,12 @@
},
"type": "array"
},
"tool": {
"type": [
"string",
"null"
]
},
"turn_id": {
"default": "",
"description": "Turn ID that this request belongs to. Uses `#[serde(default)]` for backwards compatibility.",