Skip to main content

pre_tool_use_request

Function pre_tool_use_request 

Source
pub fn pre_tool_use_request(input: &Value) -> Result<PolicyHookRequest>
Expand description

Read a Codex PreToolUse hook input. Bash and apply_patch carry their text in tool_input.command; an MCP tool is named mcp__<server>__<tool>.