pub struct MCPToolCall {
pub arguments: String,
pub id: String,
pub name: String,
pub server_label: String,
pub approval_request_id: Option<String>,
pub error: Option<String>,
pub output: Option<String>,
pub status: Option<MCPToolCallStatus>,
}Expand description
Output of an MCP server tool invocation.
Fields§
§arguments: StringA JSON string of the arguments passed to the tool.
id: StringThe unique ID of the tool call.
name: StringThe name of the tool that was run.
server_label: StringThe label of the MCP server running the tool.
approval_request_id: Option<String>Unique identifier for the MCP tool call approval request. Include this value
in a subsequent mcp_approval_response input to approve or reject the corresponding
tool call.
error: Option<String>Error message from the call, if any.
output: Option<String>The output from the tool call.
status: Option<MCPToolCallStatus>The status of the tool call. One of in_progress, completed, incomplete,
calling, or failed.
Trait Implementations§
Source§impl Clone for MCPToolCall
impl Clone for MCPToolCall
Source§fn clone(&self) -> MCPToolCall
fn clone(&self) -> MCPToolCall
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 Debug for MCPToolCall
impl Debug for MCPToolCall
Source§impl<'de> Deserialize<'de> for MCPToolCall
impl<'de> Deserialize<'de> for MCPToolCall
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 MCPToolCall
impl PartialEq for MCPToolCall
Source§impl Serialize for MCPToolCall
impl Serialize for MCPToolCall
impl StructuralPartialEq for MCPToolCall
Auto Trait Implementations§
impl Freeze for MCPToolCall
impl RefUnwindSafe for MCPToolCall
impl Send for MCPToolCall
impl Sync for MCPToolCall
impl Unpin for MCPToolCall
impl UnwindSafe for MCPToolCall
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