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
Guest UI MAY send this request to update the Host's model context. This context will be used in future turns. Each request overwrites the previous context sent by the Guest UI.
1015
+
This event serves a different use case from `notifications/message` (logging) and `ui/message` (which also trigger follow-ups).
1016
+
1017
+
Host behavior:
1018
+
- SHOULD provide the context to the model in future turns
1019
+
- MAY overwrite the previous model context with the new update
1020
+
- MAY defer sending the context to the model until the next user message (including `ui/message`)
1021
+
- MAY dedupe identical `ui/update-model-context` calls
1022
+
- If multiple updates are received before the next user message, Host SHOULD only send the last update to the model
1023
+
- MAY display context updates to the user
1024
+
982
1025
#### Notifications (Host → UI)
983
1026
984
1027
`ui/notifications/tool-input` - Host MUST send this notification with the complete tool arguments after the Guest UI's initialize request completes.
@@ -1222,10 +1265,15 @@ sequenceDiagram
1222
1265
H-->>UI: ui/notifications/tool-result
1223
1266
else Message
1224
1267
UI ->> H: ui/message
1268
+
H -->> UI: ui/message response
1225
1269
H -->> H: Process message and follow up
1226
-
else Notify
1270
+
else Context update
1271
+
UI ->> H: ui/update-model-context
1272
+
H ->> H: Store model context (overwrite existing)
1273
+
H -->> UI: ui/update-model-context response
1274
+
else Log
1227
1275
UI ->> H: notifications/message
1228
-
H ->> H: Process notification and store in context
0 commit comments