Skip to content llms.txt

input_modification

Whether hooks can modify tool input arguments before the tool executes. Safety-critical capability — silent degradation creates false security. Minimum qualification: supported when the provider provides any mechanism to modify tool input arguments before execution (e.g., hookSpecificOutput.updatedInput, plugin-mutable args, or equivalent).

Type: bool Content type: hooks

ProviderSupportedMechanism
claude-codehook_input_modification: PreToolUse returns updatedInput in hookSpecificOutput; entire input object replaced; compatible with all permissionDecision values except defer
clinecontext_modification_output: Cline PreToolUse hooks can return modified context/input before tool execution
codexhook_updated_input: Codex PreToolUse hooks return modified input arguments that replace the original tool input
factory-droidPreToolUse hooks return updatedInput in JSON output to modify tool parameters before execution
pitool_call handlers mutate event.input in place to modify tool arguments before execution; later handlers see prior mutations
ampAmp hooks cannot modify tool input before execution; only substring match and cancel-with-message are documented
copilot-cliCopilot CLI hooks cannot modify tool input before execution
crushHooks receive tool context on stdin and can return context to the agent, but modifying tool input parameters is not documented.
cursorCursor hooks are not documented to rewrite tool input before execution.
gemini-cliGemini CLI hooks cannot modify tool input before execution
kiroKiro hooks cannot modify tool input before execution
opencodenot documented
roo-codenot documented
windsurfWindsurf hooks cannot modify tool input arguments before execution
zednot documented