pub struct PreToolUseInput {
pub base: BaseHookInput,
pub subagent: SubagentContext,
pub tool_name: String,
pub tool_input: Value,
pub tool_use_id: String,
}Expand description
Input payload for PreToolUse.
Fields§
§base: BaseHookInputShared hook context (session_id, transcript_path, cwd, …).
subagent: SubagentContextOptional sub-agent attribution.
tool_name: StringTool the model wants to invoke.
tool_input: ValueThe model’s proposed input.
tool_use_id: StringOpaque tool-use identifier the CLI will reference in the matching
PostToolUse / PostToolUseFailure frame.
Trait Implementations§
Source§impl Clone for PreToolUseInput
impl Clone for PreToolUseInput
Source§impl Debug for PreToolUseInput
impl Debug for PreToolUseInput
Source§impl<'de> Deserialize<'de> for PreToolUseInput
impl<'de> Deserialize<'de> for PreToolUseInput
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 PreToolUseInput
impl RefUnwindSafe for PreToolUseInput
impl Send for PreToolUseInput
impl Sync for PreToolUseInput
impl Unpin for PreToolUseInput
impl UnsafeUnpin for PreToolUseInput
impl UnwindSafe for PreToolUseInput
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