Sweep 19 Sep 2026 · 02:36Z Build v2.1.278 500 read Stable v2.1.267 Latest v2.1.278 Next v2.1.278 Feeds RSS JSON llms.txt Unofficial
Claude Code v2.1.271 ·

SDK/control-channel gains contextData() and transcript.reveal() APIs

SDK gains contextData() to inspect context usage and transcript.reveal() to jump to a spot in the transcript

TierUse it nowhow much it should matter to you
Useful3my rating, 1 to 5
Signal2worth watching, 1 to 5
AreaSDKwhat it touches
KindNew Featuresin v2.1.271,
Use it now No documentation found

SDK gains contextData() to inspect context usage and transcript.reveal() to jump to a spot in the transcript

What

The host-facing API (used by things like IDE extensions integrating with Claude Code) gains two new methods:

  • contextData() returns a breakdown of how the context (the conversation history and other material fed to the model) is being used; when connected over a remote control channel it fetches this remotely and requires that connection to support a controlChannel capability, otherwise it's built locally.
  • transcript.reveal() delegates to the host's own "reveal in transcript" function, letting a caller jump to a specific spot in the transcript.
Why

These give tools built on Claude Code's SDK more visibility into context usage and a way to navigate the transcript programmatically, which is useful for building richer integrations or debugging tools.

Read from
Names in the bundlecontextDatatranscript.reveal

See this entry in the whole of v2.1.271 →