pub struct CallToolParams {
pub name: String,
pub arguments: Value,
}Expand description
Invoke a page-declared tool by name.
[callTool]: method WebMCP.callTool.
An engine that implements WebMCP.callTool runs the tool and returns its
result as opaque JSON — commonly a WebMCP tool-result object with a
content array and an isError flag (a failing tool is reported in-band as
isError: true, not as a protocol error).
Not every engine implements WebMCP.callTool. Depending on the engine’s
unknown-method policy, an unimplemented call surfaces either a protocol
error or an empty success result — treat an empty object as “not supported
yet” and discover live tools via WebMCP.listTools. The response is
returned as opaque JSON (serde_json::Value) so the client does not
constrain the result shape.
Fields§
§name: StringThe name of the tool to invoke, as reported by WebMCP.listTools.
arguments: ValueArguments for the tool, matching its inputSchema.
Implementations§
Trait Implementations§
Source§impl Clone for CallToolParams
impl Clone for CallToolParams
Source§fn clone(&self) -> CallToolParams
fn clone(&self) -> CallToolParams
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Command for CallToolParams
impl Command for CallToolParams
Source§impl Debug for CallToolParams
impl Debug for CallToolParams
Source§impl Default for CallToolParams
impl Default for CallToolParams
Source§fn default() -> CallToolParams
fn default() -> CallToolParams
Source§impl<'de> Deserialize<'de> for CallToolParams
impl<'de> Deserialize<'de> for CallToolParams
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>,
Source§impl Method for CallToolParams
impl Method for CallToolParams
Source§fn identifier(&self) -> MethodId
fn identifier(&self) -> MethodId
DOM.removeNodeSource§fn domain_name(&self) -> Cow<'static, str>
fn domain_name(&self) -> Cow<'static, str>
DOMSource§fn method_name(&self) -> Cow<'static, str>
fn method_name(&self) -> Cow<'static, str>
removeNode