pub struct PermissionRequestInput {
pub base: BaseHookInput,
pub subagent: SubagentContext,
pub tool_name: String,
pub tool_input: Value,
pub permission_suggestions: Option<Vec<Value>>,
}Expand description
Input payload for PermissionRequest.
Observed when the CLI asks the SDK to confirm a tool invocation. This is
distinct from the can_use_tool control_request path - PermissionRequest
hooks are observational; actual allow/deny decisions still flow through
can_use_tool.
Fields§
§base: BaseHookInputShared hook context.
subagent: SubagentContextOptional sub-agent attribution.
tool_name: StringTool the CLI is asking about.
tool_input: ValueProposed tool input.
permission_suggestions: Option<Vec<Value>>Optional list of permission-rule suggestions the CLI proposes.
Trait Implementations§
Source§impl Clone for PermissionRequestInput
impl Clone for PermissionRequestInput
Source§impl Debug for PermissionRequestInput
impl Debug for PermissionRequestInput
Source§impl<'de> Deserialize<'de> for PermissionRequestInput
impl<'de> Deserialize<'de> for PermissionRequestInput
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 PermissionRequestInput
impl RefUnwindSafe for PermissionRequestInput
impl Send for PermissionRequestInput
impl Sync for PermissionRequestInput
impl Unpin for PermissionRequestInput
impl UnsafeUnpin for PermissionRequestInput
impl UnwindSafe for PermissionRequestInput
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