pub struct PreToolUseEvent {
pub tool_name: String,
pub tool_input: Value,
pub tool_use_id: String,
pub history: Vec<Value>,
}Expand description
Snapshot passed to an automatic pre-tool hook.
history contains structured messages up to the pending call, before its result
is added. A decision can block the call or replace its input.
Fields§
§tool_name: StringName of the tool about to be executed (e.g., “Bash”, “Read”, “Edit”)
tool_input: ValueInput parameters for the tool as a JSON value
tool_use_id: StringUnique identifier for this tool use (for correlation with PostToolUseEvent)
history: Vec<Value>Structured JSON snapshot of conversation history before this tool call executes.
Implementations§
Trait Implementations§
Source§impl Clone for PreToolUseEvent
impl Clone for PreToolUseEvent
Auto Trait Implementations§
impl Freeze for PreToolUseEvent
impl RefUnwindSafe for PreToolUseEvent
impl Send for PreToolUseEvent
impl Sync for PreToolUseEvent
impl Unpin for PreToolUseEvent
impl UnsafeUnpin for PreToolUseEvent
impl UnwindSafe for PreToolUseEvent
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