host-capability-matrix
БесплатноБез исполняемых скриптовНе проверенThis skill should be used when deciding which MCP Apps or window.openai APIs are safe to depend on for a given host — the verified M365 Copilot support matrix…
от TheLobbi★ 22 звезды на GitHubОб этом скилле
Host capability matrix
Every host implements a subset. An API that exists in ChatGPT may be undefined
in M365 Copilot and absent in a custom host. Unsupported APIs are undefined,
not throwing — so a missing guard produces a silent dead button, not an error
you will notice in testing.
The tables below are the published Microsoft 365 Copilot support matrix, which
is the most complete public statement of any host's coverage. Treat ChatGPT as
full support for the window.openai column (it defines it) and Claude as full
support for the MCP Apps column. Verify at runtime regardless.
Component bridge
| OpenAI Apps SDK | MCP Apps equivalent | M365 Copilot |
|---|---|---|
window.openai.toolInput |
app.ontoolinput |
✅ |
window.openai.toolOutput |
app.ontoolresult |
✅ |
window.openai.toolResponseMetadata |
app.ontoolresult → params._meta |
✅ |
window.openai.widgetState |
— | ✅ |
window.openai.setWidgetState(state) |
no direct equivalent; use app.updateModelContext() |
✅ |
window.openai.callTool(name, args) |
app.callServerTool({ name, arguments }) |
✅ |
window.openai.sendFollowUpMessage({ prompt }) |
app.sendMessage({ … }) |
✅ |
window.openai.uploadFile(file) |
— | ❌ |
window.openai.getFileDownloadUrl({ fileId }) |
— | ❌ |
window.openai.requestDisplayMode(…) |
app.requestDisplayMode({ mode }) |
✅ fullscreen only |
window.openai.requestModal(…) |
— | ❌ |
window.openai.notifyIntrinsicHeight(…) |
app.sendSizeChanged({ width, height }) |
✅ |
window.openai.openExternal({ href }) |
app.openLink({ url }) |
✅ |
window.openai.setOpenInAppUrl({ href }) |
— | ✅ |
window.openai.theme |
app.getHostContext()?.theme |
✅ |
window.openai.displayMode |
app.getHostContext()?.displayMode |
✅ |
window.openai.maxHeight |
app.getHostContext()?.viewport?.maxHeight |
✅ |
window.openai.safeArea |
app.getHostContext()?.safeAreaInsets |
✅ |
window.openai.view |
— | ✅ |
window.openai.userAgent |
app.getHostContext()?.userAgent |
✅ |
window.openai.locale |
app.getHostContext()?.locale |
✅ |
| — | app.ontoolinputpartial |
❌ |
| — | app.ontoolcancelled |
❌ |
| — | app.getHostContext()?.availableDisplayModes |
❌ |
| — | app.getHostContext()?.toolInfo |
❌ |
| — | app.onhostcontextchanged |
❌ |
| — | app.onteardown |
❌ |
| — | app.sendLog({ level, data }) |
❌ |
| — | app.getHostVersion() |
❌ |
| — | app.getHostCapabilities() |
✅ |
The four ❌ rows that hurt most in practice:
onteardownunsupported → you get no flush signal. Persist on every meaningful change rather than at unmount.onhostcontextchangedunsupported → theme changes mid-session will not reach you. Read theme once at init and accept the staleness, or use CSSprefers-color-schemeas a backstop.ontoolinputpartialunsupported → no streaming skeleton. Design the loading state aroundontoolinputonly.sendLogunsupported → fall back toconsoleplus a visible debug pane behind a query flag.
Tool descriptor _meta
| OpenAI Apps SDK | MCP Apps equivalent | M365 Copilot |
|---|---|---|
_meta["openai/outputTemplate"] |
_meta.ui.resourceUri |
✅ |
_meta["openai/widgetAccessible"] |
_meta.ui.visibility (string[]) |
❌ |
_meta["openai/visibility"] |
_meta.ui.visibility (string[]) |
✅ |
_meta["openai/toolInvocation/invoking"] |
— | ❌ |
_meta["openai/toolInvocation/invoked"] |
— | ❌ |
_meta["openai/fileParams"] |
— | ❌ |
_meta["securitySchemes"] |
— | ❌ |
Tool descriptor annotations
| Annotation | M365 Copilot |
|---|---|
readOnlyHint |
✅ |
destructiveHint |
❌ |
openWorldHint |
❌ |
idempotentHint |
❌ |
Only readOnlyHint is honored. Do not rely on destructiveHint to produce a
confirmation prompt — build the confirmation into your own UI.
Component resource _meta
| OpenAI Apps SDK | MCP Apps equivalent | M365 Copilot |
|---|---|---|
_meta["openai/widgetDescription"] |
— | ❌ |
_meta["openai/widgetPrefersBorder"] |
_meta.ui.prefersBorder |
❌ |
_meta["openai/widgetCSP"] |
_meta.ui.csp |
✅ |
_meta["openai/widgetDomain"] |
_meta.ui.domain |
❌ |
| — | _meta.ui.permissions |
❌ |
CSP object properties
| OpenAI Apps SDK | MCP Apps equivalent | M365 Copilot |
|---|---|---|
connect_domains |
connectDomains |
✅ |
resource_domains |
resourceDomains |
✅ |
frame_domains |
frameDomains |
❌ |
redirect_domains |
— | ❌ |
| — | baseUriDomains |
❌ |
Nested iframes are not available in Copilot at all. If your design embeds a third-party frame (a map, a video player), it will not render there — inline the capability or degrade to a link.
Host-provided tool result _meta
| Field | M365 Copilot |
|---|---|
_meta["openai/widgetSessionId"] |
❌ |
Client-provided _meta
| Field | M365 Copilot |
|---|---|
_meta["openai/locale"] |
✅ |
_meta["openai/userAgent"] |
✅ |
| `_meta["openai/use |
Установить host-capability-matrix в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл host-capability-matrix?
This skill should be used when deciding which MCP Apps or window.openai APIs are safe to depend on for a given host — the verified M365 Copilot support matrix for the component bridge, tool descriptor _meta, annotations, resource _meta, CSP properties, and client _meta, plus the feature-detection patterns that keep a widget portable.
Как установить скилл host-capability-matrix?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл host-capability-matrix запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic