Follow Discord
Sweep 06 Nov 2026 · 01:32Z Build v2.1.319 537 read Stable v2.1.311 Latest v2.1.319 Next v2.1.319 Feeds RSS JSON llms.txt llms-full.txt Unofficial
One change · api

Count tokens in a Message changedapi/beta/messages/count_tokens

Nearest release: v2.1.315, published under an hour 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+13added
Lines−3removed
From line 135 where the diff opens
First seen 14 Aug 2026 this site's first read of the page
Recorded edits29to this page, all time

The whole hunk

from line 135, old and new numbered
/
lines
from line 135
135135 
136136 - `"analytics-usage-cost-2026-08-24"`
137137 
138 - `"experimental-claude-tag-2026-10-21"`
139 
138140- `"anthropic-user-profile-id": optional string`
139141 
140142 The user profile ID to attribute this request to. Use when acting on behalf of a party other than your organization.
from line 1024
10221024 
10231025 - `BetaEncryptedCodeExecutionResultBlockParam object`
10241026 
1025 Code execution result with encrypted stdout for PFC + web_search results.
1027 The output and exit code of Python code that Claude ran with the code execution tool, with standard output in encrypted form, sent back in a later request.
10261028 
10271029 - `type: "encrypted_code_execution_result"`
10281030 
from line 1560
15581560 
15591561 - `BetaCodeExecutionTool20260120 object`
15601562 
1561 Code execution tool with REPL state persistence (daemon mode + gVisor checkpoint).
1563 A `tools` entry for the code execution tool, version `code_execution_20260120`. It adds REPL state persistence to version `code_execution_20250825`.
15621564 
1565 REPL state persistence applies with programmatic tool calling. With it, the Python interpreter state, such as variable bindings, persists across requests that reuse the container.
1566 
1567 See the [code execution tool guide](https://platform.claude.com/docs/en/agents-and-tools/tool-use/code-execution-tool?sdk_languages=http#tool-versions) to learn what each tool version adds.
1568 
15631569 - `type: "code_execution_20260120"`
15641570 
15651571 - `name: "code_execution"`
from line 3993
39873993 
39883994 - `BetaCodeExecutionTool20260120 object`
39893995 
3990 Code execution tool with REPL state persistence (daemon mode + gVisor checkpoint).
3996 A `tools` entry for the code execution tool, version `code_execution_20260120`. It adds REPL state persistence to version `code_execution_20250825`.
3997 
3998 REPL state persistence applies with programmatic tool calling. With it, the Python interpreter state, such as variable bindings, persists across requests that reuse the container.
3999 
4000 See the [code execution tool guide](https://platform.claude.com/docs/en/agents-and-tools/tool-use/code-execution-tool?sdk_languages=http#tool-versions) to learn what each tool version adds.
39914001 
39924002 - `BetaCodeExecutionTool20260521 object`
39934003 
Feedback