Follow Discord
Sweep 03 Dec 2026 · 19:13Z Build v2.1.336 553 read Stable v2.1.332 Latest v2.1.336 Next v2.1.336 Feeds RSS JSON llms.txt llms-full.txt Unofficial
One change · claude-code

Agent SDK reference - TypeScript changedagent-sdk/typescript

Nearest release: v2.1.333, published 2 hours 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 30 Nov 2026 21:16 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 30 Nov 2026 21:37 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
/
lines

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`, which Claude reads. 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 `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`.
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
4623| `taskId` | `string` | Background task identifier for
Feedback