pub struct ToolMeta {
pub ui_resource_uri: Option<String>,
}Expand description
Re-export commonly used types Tool metadata for protocol extensions
This supports the MCP Apps Extension (SEP-1865) and future extensions that need to attach metadata to tools.
Fields§
§ui_resource_uri: Option<String>Reference to a UI resource (MCP Apps Extension)
Links this tool to an interactive HTML interface that can be displayed
when the tool is called. The URI should use the ui:// scheme and
reference a resource returned by list_resources.
Example: "ui://charts/bar-chart"
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ToolMeta
impl<'de> Deserialize<'de> for ToolMeta
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ToolMeta, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ToolMeta, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for ToolMeta
impl Serialize for ToolMeta
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for ToolMeta
impl RefUnwindSafe for ToolMeta
impl Send for ToolMeta
impl Sync for ToolMeta
impl Unpin for ToolMeta
impl UnwindSafe for ToolMeta
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