pub struct McpToolCallRequest {
pub name: String,
pub arguments: Option<Value>,
}Expand description
Tool call request to invoke a tool.
Sent by the client to execute a specific tool with the provided arguments.
§Fields
name- Name of the tool to invokearguments- Tool-specific parameters matching the input schema
§Example
ⓘ
let request = McpToolCallRequest {
name: "read_file".to_string(),
arguments: Some(json!({"path": "/test.txt"})),
};Fields§
§name: StringName of the tool to invoke
arguments: Option<Value>Tool arguments matching its input schema
Trait Implementations§
Source§impl Clone for McpToolCallRequest
impl Clone for McpToolCallRequest
Source§fn clone(&self) -> McpToolCallRequest
fn clone(&self) -> McpToolCallRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for McpToolCallRequest
impl Debug for McpToolCallRequest
Source§impl<'de> Deserialize<'de> for McpToolCallRequest
impl<'de> Deserialize<'de> for McpToolCallRequest
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 McpToolCallRequest
impl RefUnwindSafe for McpToolCallRequest
impl Send for McpToolCallRequest
impl Sync for McpToolCallRequest
impl Unpin for McpToolCallRequest
impl UnsafeUnpin for McpToolCallRequest
impl UnwindSafe for McpToolCallRequest
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