Follow Discord
Sweep 22 Oct 2026 · 04:32Z Build v2.1.308 527 read Stable v2.1.308 Latest v2.1.308 Next v2.1.308 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.119 ·

SDK Enhancements

Entry
JSON All of v2.1.119
EntryKind: in v2.1.119,
ChangesSection of the release

Several new options are available for the Agent SDK:

  • askUserQuestion.previewFormat exposed via CLAUDE_CODE_QUESTION_PREVIEW_FORMAT env var
  • canUseTool callback for dynamic tool permission decisions (mutually exclusive with permissionPromptToolName)
  • getOAuthToken callback for custom OAuth token provision
  • Input/output validation with structured error messages: "Input validation error: Invalid arguments for tool" / "Output validation error: Invalid structured content for tool"
  • Tool annotations support via Zod schemas
  • taskSupport for tools: "required" (needs task augmentation) vs "forbidden" (must use registerTool() instead)
Evidence

SDK enhancements (search for "CLAUDE_CODE_QUESTION_PREVIEW_FORMAT", "canUseTool callback", "Output validation error")

Strings lifted out of the shipped bundle, so the claim above can be checked against them.

See this entry in the whole of v2.1.119 →

Feedback