Handle approvals and user input changedagent-sdk/user-input
Nearest release: v2.1.273, published 3 hours before this site recorded the change. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.
Recorded here
Lines+6added
Lines−6removed
From line
540
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits16to this page, all time
The whole hunk
from line 540, old and new numbered
/
from line 540
540540
541541The input contains Claude's generated questions in a `questions` array. Each question has these fields:
542542
543| Field | Description |
544| ------------- | -------------------------------------------------------------------------------------------------------------------------------------- |
545| `question` | The full question text to display |
546| `header` | Short label for the question (max 12 characters) |
547| `options` | Array of 2-4 choices, each with `label` and `description`. TypeScript: optionally `preview` (see [below](#option-previews-typescript)) |
548| `multiSelect` | If `true`, users can select multiple options |
543| Field | Description |
544| ------------- | ------------------------------------------------------------------------------------------------------------------------------------------------ |
545| `question` | The full question text to display |
546| `header` | Short label for the question (max 12 characters) |
547| `options` | Array of 2-4 choices, each with `label` and `description`. TypeScript: optionally `preview`. See [Option previews](#option-previews-typescript). |
548| `multiSelect` | If `true`, users can select multiple options |
549549
550550The structure your callback receives:
551551
No line in this hunk matches that.