Skip to content

Commit f0d9582

Browse files
authored
spec: add missing HostCapabilities fields (#653)
1 parent ea8775d commit f0d9582

1 file changed

Lines changed: 31 additions & 8 deletions

File tree

specification/draft/apps.mdx

Lines changed: 31 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -659,6 +659,22 @@ Example:
659659
They describe the features and capabilities that the Host supports.
660660

661661
```typescript
662+
/** Content block modalities that the host supports for a given capability. */
663+
interface SupportedContentBlockModalities {
664+
/** Host supports text content blocks. */
665+
text?: {};
666+
/** Host supports image content blocks. */
667+
image?: {};
668+
/** Host supports audio content blocks. */
669+
audio?: {};
670+
/** Host supports resource content blocks. */
671+
resource?: {};
672+
/** Host supports resource link content blocks. */
673+
resourceLink?: {};
674+
/** Host supports structured content. */
675+
structuredContent?: {};
676+
}
677+
662678
interface HostCapabilities {
663679
/** Experimental features (structure TBD). */
664680
experimental?: {};
@@ -678,14 +694,6 @@ interface HostCapabilities {
678694
};
679695
/** Host accepts log messages. */
680696
logging?: {};
681-
/**
682-
* Host supports LLM sampling (sampling/createMessage) from the view.
683-
* Mirrors MCP ClientCapabilities.sampling so hosts can pass it through.
684-
*/
685-
sampling?: {
686-
/** Host supports tool use via `tools` and `toolChoice` params (SEP-1577). */
687-
tools?: {};
688-
};
689697
/** Sandbox configuration applied by the host. */
690698
sandbox?: {
691699
/** Permissions granted by the host (camera, microphone, geolocation, clipboard-write). */
@@ -707,6 +715,21 @@ interface HostCapabilities {
707715
baseUriDomains?: string[];
708716
};
709717
};
718+
/**
719+
* Host accepts context updates (ui/update-model-context) to be included in
720+
* the model's context for future turns.
721+
*/
722+
updateModelContext?: SupportedContentBlockModalities;
723+
/** Host supports receiving content messages (ui/message) from the view. */
724+
message?: SupportedContentBlockModalities;
725+
/**
726+
* Host supports LLM sampling (sampling/createMessage) from the view.
727+
* Mirrors MCP ClientCapabilities.sampling so hosts can pass it through.
728+
*/
729+
sampling?: {
730+
/** Host supports tool use via `tools` and `toolChoice` params (SEP-1577). */
731+
tools?: {};
732+
};
710733
}
711734
```
712735

0 commit comments

Comments
 (0)