pub struct ToolMeta {
pub ui_resource_uri: Option<String>,
}Expand description
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<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 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