#[non_exhaustive]pub struct WebMCPTool {
pub name: String,
pub description: String,
pub input_schema: Option<Value>,
pub annotations: Option<WebMCPToolAnnotations>,
}Expand description
One tool a page registered, as WebMCP::tools reports it.
See: https://playwright.dev/docs/api/class-webmcp#webmcp-tools
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringThe name WebMCP::call_tool takes.
description: StringWhat the page says the tool does.
input_schema: Option<Value>The JSON Schema of the tool’s input, when the page gave one.
annotations: Option<WebMCPToolAnnotations>The hints the page gave about the tool, when it gave any.
Trait Implementations§
Source§impl Clone for WebMCPTool
impl Clone 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
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 UnsafeUnpin 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