Handle approvals and user input changedagent-sdk/user-input
Nearest release: v2.1.331, published under an hour before upstream edited the page. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.
Upstream edited this page at 23 Nov 2026 18:49 UTC, give or take a minute or two: the time comes from Anthropic’s own sitemap rather than from a commit. This site recorded the change at 23 Nov 2026 19:02 UTC.
Upstream edited
Recorded here
Lines+1added
Lines−1removed
From line
249
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits19to this page, all time
The whole hunk
from line 249, old and new numbered
/
from line 249
249249
250250> [tab] Approve with changes
251251>
252> The user approves but wants to modify the request first. You can change the input before the tool executes. Claude sees the result but isn't told you changed anything. Useful for sanitizing parameters, adding constraints, or scoping access.
252> The user approves but wants to modify the request first. You can change the input before the tool executes. Useful for sanitizing parameters, adding constraints, or scoping access.
253253>
254254> ```python Python theme={null}
255255> async def can_use_tool(tool_name, input_data, context):
No line in this hunk matches that.