diff --git a/specification/draft/apps.mdx b/specification/draft/apps.mdx index e7c343b8..ecf11f26 100644 --- a/specification/draft/apps.mdx +++ b/specification/draft/apps.mdx @@ -491,7 +491,7 @@ If the Host is a web page, it MUST wrap the View and communicate with it through 1. The Host and the Sandbox MUST have different origins. 2. The Sandbox MUST have the following permissions: `allow-scripts`, `allow-same-origin`. -3. The Sandbox SHOULD send a `ui/notifications/sandbox-proxy-ready` notification to the host when it's ready to process an `ui/notifications/sandbox-resource-ready` notification. +3. The Sandbox SHOULD send a `ui/notifications/sandbox-proxy-ready` notification to the host when it's ready to process a `ui/notifications/sandbox-resource-ready` notification. 4. Once the Sandbox is ready, the Host SHOULD send the raw HTML resource to load in a `ui/notifications/sandbox-resource-ready` notification. 5. The Sandbox MUST load the raw HTML of the View with CSP settings that: - Enforce the domains declared in `ui.csp` metadata @@ -548,7 +548,7 @@ interface McpUiAppCapabilities { ### Host Context in `McpUiInitializeResult` -When the View sends an `ui/initialize` request to the Host, the Host SHOULD include UI-specific context in the `McpUiInitializeResult`'s `hostContext` field: +When the View sends a `ui/initialize` request to the Host, the Host SHOULD include UI-specific context in the `McpUiInitializeResult`'s `hostContext` field: ```typescript interface HostContext { @@ -1241,19 +1241,19 @@ View behavior (optional): Host MUST send this notification when tool execution completes (if the View is displayed during tool execution). -`ui/notifications/tool-cancelled` - Tool execution was cancelled +`ui/notifications/tool-canceled` - Tool execution was canceled ```typescript { jsonrpc: "2.0", - method: "ui/notifications/tool-cancelled", + method: "ui/notifications/tool-canceled", params: { reason: string } } ``` -Host MUST send this notification if the tool execution was cancelled, for any reason (which can optionally be specified), including user action, sampling error, classifier intervention, etc. +Host MUST send this notification if the tool execution was canceled, for any reason (which can optionally be specified), including user action, sampling error, classifier intervention, etc. `ui/resource-teardown` - Host notifies View before teardown @@ -1404,8 +1404,8 @@ sequenceDiagram end alt Tool complete H -->> UI: ui/notifications/tool-result - else Tool cancelled - H -->> UI: ui/notifications/tool-cancelled + else Tool canceled + H -->> UI: ui/notifications/tool-canceled end ```