pub struct McpToolUi {
pub resource_uri: Option<String>,
pub visibility: Option<Vec<McpToolUiVisibility>>,
}Expand description
Normalized MCP Apps discovery metadata from a tool’s _meta.ui block.
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
Fields§
§resource_uri: Option<String>URI of the tool’s MCP App resource, typically a ui:// resource identifier. Use session.mcp.resources.read to fetch its HTML and resource metadata.
visibility: Option<Vec<McpToolUiVisibility>>Tool visibility advertised by the server. When absent, MCP Apps defaults apply.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for McpToolUi
impl<'de> Deserialize<'de> for McpToolUi
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for McpToolUi
impl RefUnwindSafe for McpToolUi
impl Send for McpToolUi
impl Sync for McpToolUi
impl Unpin for McpToolUi
impl UnsafeUnpin for McpToolUi
impl UnwindSafe for McpToolUi
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more