pub struct WebMcpTool {
pub name: String,
pub description: String,
pub input_schema: WebMcpInputSchema,
pub origin: Option<String>,
pub annotations: WebMcpToolAnnotations,
}Expand description
A tool exposed by a web page via WebMCP.
Maps directly to the navigator.modelContext.registerTool() call.
The agent discovers these tools upon navigating to a page.
Fields§
§name: StringUnique tool name within the page context.
description: StringHuman-readable description of what the tool does.
input_schema: WebMcpInputSchemaJSON Schema describing the input parameters.
origin: Option<String>Origin URL where this tool was discovered.
annotations: WebMcpToolAnnotationsSecurity annotations for this tool.
Trait Implementations§
Source§impl Clone for WebMcpTool
impl Clone for WebMcpTool
Source§fn clone(&self) -> WebMcpTool
fn clone(&self) -> WebMcpTool
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl ComposeSchema for WebMcpTool
impl ComposeSchema for WebMcpTool
Source§impl Debug for WebMcpTool
impl Debug for WebMcpTool
Source§impl<'de> Deserialize<'de> for WebMcpTool
impl<'de> Deserialize<'de> for WebMcpTool
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
Source§impl PartialEq for WebMcpTool
impl PartialEq for WebMcpTool
Source§impl Serialize for WebMcpTool
impl Serialize for WebMcpTool
Source§impl ToSchema for WebMcpTool
impl ToSchema for WebMcpTool
impl StructuralPartialEq for WebMcpTool
Auto Trait Implementations§
impl Freeze for WebMcpTool
impl RefUnwindSafe for WebMcpTool
impl Send for WebMcpTool
impl Sync for WebMcpTool
impl Unpin for WebMcpTool
impl UnwindSafe for WebMcpTool
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