Follow Discord
Sweep 20 Nov 2026 · 19:55Z Build v2.1.330 547 read Stable v2.1.323 Latest v2.1.330 Next v2.1.330 Feeds RSS JSON llms.txt llms-full.txt Unofficial
HomeDocsSearch
Search the documentation

14 pages for updatedinput.

Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.

Give Claude custom tools Claude Code CLI · in the page agent-sdk/custom-tools …Approval requested for ${toolName}`); return { behavior: "allow", updatedInput: input }; } } ``` To try the policy, replace the `options` in the [Call a custom tool](#call-a-custom-tool) script… Intercept and control agent behavior with hooks Claude Code CLI · in the page agent-sdk/hooks …`, `"deny"`, `"ask"`, or `"defer"`), `permissionDecisionReason`, and `updatedInput`. If you return `"defer"`, the turn ends with a result message whose `stop_reason` is `"tool_deferred"`, so you can [… Agent SDK reference - Python Claude Code CLI · in the page agent-sdk/python …, "ask", "defer"]] permissionDecisionReason: NotRequired[str] updatedInput: NotRequired[dict[str, Any]] additionalContext: NotRequired[str] class PostToolUseHookSpecificOutput(TypedDict)… Agent SDK reference - TypeScript Claude Code CLI · in the page agent-sdk/typescript …e={null} type PermissionResult = | { behavior: "allow"; updatedInput?: Record<string, unknown>; updatedPermissions?: PermissionUpdate[]; toolUseID?: string; } | {… Handle approvals and user input Claude Code CLI · in the page agent-sdk/user-input …the original (or modified) input return { behavior: "allow", updatedInput: input }; } else { // Deny: tool doesn't execute, Claude sees the message return { behavior: "d… Claude Code changelog Claude Code CLI · in the page changelog …ervers whose tools load on demand * Improved how a PreToolUse hook's `updatedInput` is kept when more than one hook answers a tool call; the rewrite now runs in more cases * Improved the error when a… Manage costs effectively Claude Code CLI · in the page costs …ered_cmd" \ > '{hookSpecificOutput: {hookEventName: "PreToolUse", updatedInput: (.tool_input + {command: $filtered})}}' > else > echo "{}" > fi > ``` To verify the setup, run `/hooks` and check… Error reference Claude Code CLI · in the page errors …the call's input](https://code.claude.com/docs/en/hooks.md#pretooluse-updatedinput-in-auto-mode) after the server reviewed it, so the review doesn't cover what would run. It isn't a judgment that the… Hooks reference Claude Code CLI · in the page hooks …e.com/docs/en/tools-reference.md#monitor-tool), but its `allow` and [`updatedInput`](#pretooluse-decision-control) have no effect on them. Requires Claude Code v2.1.314 or later. Matchers such as `Bas… Automate actions with hooks Claude Code CLI · in the page hooks-guide …user interaction](https://code.claude.com/docs/en/hooks.md#allow-with-updatedinput), such as `ExitPlanMode`, the allow also needs `updatedInput`, or Claude Code ignores it and still shows the prompt.… Monitoring Claude Code CLI · in the page monitoring-usage …accepted call if the permission decision rewrites the tool input via `updatedInput`. Use this attribute to see which command was rejected when `decision` is `"reject"`. * For `"sdk_host_builtin_mcp"… Choose a permission mode Claude Code CLI · in the page permission-modes …o. If a [hook](https://code.claude.com/docs/en/hooks.md#pretooluse-updatedinput-in-auto-mode) or [mod](https://code.claude.com/docs/en/plugins/mods/overview.md) changes an action's input after the… Configure permissions Claude Code CLI · in the page permissions …l the call would get with no hook, and Claude Code still applies any `updatedInput` the hook returns. If the hook answers [`ExitPlanMode`](https://code.claude.com/docs/en/hooks#allow-with-updatedinput… Troubleshoot a mod Claude Code CLI · in the page plugins/mods/troubleshoot …VS Code sessions](https://code.claude.com/docs/en/hooks.md#pretooluse-updatedinput-in-auto-mode), the same denial gives the reason `a hook changed this call's input after auto mode reviewed it`. The r…
Feedback