Remove viewport
This commit is contained in:
parent
e90c7945bc
commit
dc226be962
1 changed files with 13 additions and 143 deletions
|
|
@ -25,7 +25,7 @@ export interface WidgetProps<TToolInput = Record<string, unknown>> {
|
|||
toolInputsPartial: TToolInput | null;
|
||||
/** Tool execution result from the server */
|
||||
toolResult: CallToolResult | null;
|
||||
/** Host context (theme, viewport, locale, etc.) */
|
||||
/** Host context (theme, dimensions, locale, etc.) */
|
||||
hostContext: McpUiHostContext | null;
|
||||
/** Call a tool on the MCP server */
|
||||
callServerTool: App["callServerTool"];
|
||||
|
|
@ -65,7 +65,7 @@ function McpAppWrapper() {
|
|||
app.ontoolresult = (params) => {
|
||||
setToolResult(params as CallToolResult);
|
||||
};
|
||||
// Host context changes (theme, viewport, etc.)
|
||||
// Host context changes (theme, dimensions, etc.)
|
||||
app.onhostcontextchanged = (params) => {
|
||||
setHostContext(params);
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue