Agent SDK reference - TypeScript changedagent-sdk/typescript
Nearest release: v2.1.334, published 3 hours after 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 1 Dec 2026 15:41 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 1 Dec 2026 16:07 UTC.
Upstream edited
Recorded here
Lines+1added
Lines−1removed
From line
3,427
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits157to this page, all time
The whole hunk
from line 3427, old and new numbered
/
This page is larger than the 256 KiB this site keeps, so one side of the diff below stops where the stored text does.
from line 3427
34273427
34283428Asks the user clarifying questions during execution. See [Handle approvals and user input](https://code.claude.com/docs/en/agent-sdk/user-input.md#handle-clarifying-questions) for usage details.
34293429
3430When a user skips a question, describe the skip in `answers`. To tell a skip from an answer in [`tool_use_result`](#sdkusermessage), also set [`unanswered`](#askuserquestion-2) on that question's entry in `updatedInput.annotations`. Set `unanswered` only when [`SDKSystemMessage.capabilities`](#sdksystemmessage) lists `ask_user_question_unanswered_v1`.
3430When a user skips a question, describe the skip in the `answers` field. To tell a skip from an answer in the [`tool_use_result`](#sdkusermessage) field, also set the [`unanswered`](#askuserquestion-2) field on the skipped question's entry in `updatedInput.annotations`. Set `unanswered` only when [`SDKSystemMessage.capabilities`](#sdksystemmessage) lists `ask_user_question_unanswered_v1`.
34313431
34323432This `canUseTool` return value sets `answers` and `unanswered`:
34333433
from line 4620
46204620| Field | Type | Description |
46214621| - | - | - |
46224622| `status` | `"async_launched" \| "remote_launched"` | The tool accepted the invocation. `"async_launched"` for in-process runs, `"remote_launched"` for runs dispatched to a cloud session instead of running in-process |
4623| `taskId` | `string` | Background task identifier for the run
4623| `taskId` | `string` | Ba
No line in this hunk matches that.