protocol
mcp_ui_protocol
Optional MCP Apps (io.modelcontextprotocol/ui) metadata for tools and resources. Applications that provide interactive UI resources declare ui in capabilities/1 (and typically resources), implement mcp_resource_protocol for ui:// HTML resources, and may implement these predicates to attach tool and resource UI metadata. See the https://modelcontextprotocol.io/extensions/apps/overview spec for details.
logtalk_load(mcp_server(loader))staticPublic predicates
tool_ui/2
Optional. UI metadata for a tool. Options is a list of resource_uri(URI) and/or visibility(List) terms. URI must be a ui:// resource served by the application. List is a list of model and/or app (default when omitted on the wire is both). App-only tools use visibility([app]) so hosts hide them from the model while still allowing iframe-proxied tools/call.
statictool_ui(ToolName,Options)tool_ui(?atom,-list) - zero_or_moreresource_ui_meta/2
Optional. UI metadata for a ui:// resource as a curly-term matching the Apps _meta.ui object (csp, permissions, domain, prefersBorder). Attached when serializing resource descriptors and may be used for resources/read content.
staticresource_ui_meta(URI,Meta)resource_ui_meta(?atom,-compound) - zero_or_moreProtected predicates
(none)
Private predicates
(none)
Operators
(none)
See also