// GENERATED CONTENT - DO NOT EDIT // Content was automatically extracted by Reffy into webref // (https://github.com/w3c/webref) // Source: WebMCP (https://webmachinelearning.github.io/webmcp/) partial interface Navigator { [SecureContext, SameObject] readonly attribute ModelContext modelContext; }; [Exposed=Window, SecureContext] interface ModelContext { undefined registerTool(ModelContextTool tool); undefined unregisterTool(DOMString name); }; dictionary ModelContextTool { required DOMString name; required DOMString description; object inputSchema; required ToolExecuteCallback execute; ToolAnnotations annotations; }; dictionary ToolAnnotations { boolean readOnlyHint = false; }; callback ToolExecuteCallback = Promise (object input, ModelContextClient client); [Exposed=Window, SecureContext] interface ModelContextClient { Promise requestUserInteraction(UserInteractionCallback callback); }; callback UserInteractionCallback = Promise ();