Merge pull request #152 from modelcontextprotocol/martinalong/mcp-apps/display-mode-updates
[MCP Apps] Have apps request display mode instead
This commit is contained in:
commit
c516cf0894
1 changed files with 272 additions and 1 deletions
|
|
@ -2845,6 +2845,67 @@
|
|||
},
|
||||
"additionalProperties": {}
|
||||
},
|
||||
"McpUiRequestDisplayModeRequest": {
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"method": {
|
||||
"type": "string",
|
||||
"const": "ui/request-display-mode"
|
||||
},
|
||||
"params": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"mode": {
|
||||
"description": "The display mode being requested.",
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "string",
|
||||
"const": "inline"
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"const": "fullscreen"
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"const": "pip"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"required": ["mode"],
|
||||
"additionalProperties": false
|
||||
}
|
||||
},
|
||||
"required": ["method", "params"],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"McpUiRequestDisplayModeResult": {
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"mode": {
|
||||
"description": "The display mode that was actually set. May differ from requested if not supported.",
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "string",
|
||||
"const": "inline"
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"const": "fullscreen"
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"const": "pip"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"required": ["mode"],
|
||||
"additionalProperties": {}
|
||||
},
|
||||
"McpUiResourceCsp": {
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"type": "object",
|
||||
|
|
|
|||
Loading…
Reference in a new issue