pub struct PreMcpToolCallInput {
pub session_id: String,
pub timestamp: i64,
pub working_directory: PathBuf,
pub server_name: String,
pub tool_name: String,
pub arguments: Value,
pub tool_call_id: Option<String>,
pub meta: Option<Value>,
}Expand description
Input for the preMcpToolCall hook — received before an MCP tool call is dispatched.
Fields§
§session_id: StringThe runtime session ID of the session that triggered the hook.
timestamp: i64Unix timestamp (ms).
working_directory: PathBufWorking directory.
server_name: StringName of the MCP server being called.
tool_name: StringName of the MCP tool being called.
arguments: ValueArguments for the MCP tool call.
tool_call_id: Option<String>Tool call ID, if available.
meta: Option<Value>MCP request metadata.
Trait Implementations§
Source§impl Clone for PreMcpToolCallInput
impl Clone for PreMcpToolCallInput
Source§fn clone(&self) -> PreMcpToolCallInput
fn clone(&self) -> PreMcpToolCallInput
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 PreMcpToolCallInput
impl Debug for PreMcpToolCallInput
Source§impl<'de> Deserialize<'de> for PreMcpToolCallInput
impl<'de> Deserialize<'de> for PreMcpToolCallInput
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 PreMcpToolCallInput
impl RefUnwindSafe for PreMcpToolCallInput
impl Send for PreMcpToolCallInput
impl Sync for PreMcpToolCallInput
impl Unpin for PreMcpToolCallInput
impl UnsafeUnpin for PreMcpToolCallInput
impl UnwindSafe for PreMcpToolCallInput
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