Have apps request display mode instead
This commit is contained in:
parent
372c24181e
commit
83860d7c31
1 changed files with 272 additions and 1 deletions
|
|
@ -307,6 +307,31 @@ export const McpUiResourceMetaSchema = z.object({
|
|||
),
|
||||
});
|
||||
|
||||
/**
|
||||
* @description Request to change the display mode of the UI.
|
||||
* The host will respond with the actual display mode that was set,
|
||||
* which may differ from the requested mode if not supported.
|
||||
* @see {@link app.App.requestDisplayMode} for the method that sends this request
|
||||
*/
|
||||
export const McpUiRequestDisplayModeRequestSchema = z.object({
|
||||
method: z.literal("ui/request-display-mode"),
|
||||
params: z.object({
|
||||
/** @description The display mode being requested. */
|
||||
mode: McpUiDisplayModeSchema.describe("The display mode being requested."),
|
||||
}),
|
||||
});
|
||||
|
||||
/**
|
||||
* @description Result from requesting a display mode change.
|
||||
* @see {@link McpUiRequestDisplayModeRequest}
|
||||
*/
|
||||
export const McpUiRequestDisplayModeResultSchema = z.looseObject({
|
||||
/** @description The display mode that was actually set. May differ from requested if not supported. */
|
||||
mode: McpUiDisplayModeSchema.describe(
|
||||
"The display mode that was actually set. May differ from requested if not supported.",
|
||||
),
|
||||
});
|
||||
|
||||
/**
|
||||
* @description Request to send a message to the host's chat interface.
|
||||
* @see {@link app.App.sendMessage} for the method that sends this request
|
||||
|
|
|
|||
Loading…
Reference in a new issue