Handle approvals and user input changedagent-sdk/user-input
Nearest release: v2.1.335, published 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 2 Dec 2026 22:55 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 2 Dec 2026 23:07 UTC.
Upstream edited
Recorded here
Lines+1added
Lines−4removed
From line
614
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 614, old and new numbered
/
from line 614
614614
615615#### Support free-text input
616616
617Claude's predefined options won't always cover what users want. To let users type their own answer:
618
619* Display an additional "Other" choice after Claude's options that accepts text input
620* Use the user's custom text as the answer value (not the word "Other")
617Claude's predefined options won't always cover what users want. To let users type their own answer, display an additional "Other" choice after Claude's options that accepts text input. Use the user's custom text as the answer value (not the word "Other").
621618
622619See the [complete example](#complete-example) below for a full implementation.
623620
No line in this hunk matches that.