Count tokens in a Message changedapi/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+6added
Lines−2removed
From line
854
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits22to this page, all time
The whole hunk
from line 854, old and new numbered
/
from line 854
854854
855855 - `EncryptedCodeExecutionResultBlockParam object`
856856
857 Code execution result with encrypted stdout for PFC + web_search results.
857 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.
858858
859859 - `type: "encrypted_code_execution_result"`
860860
from line 1563
15631563
15641564 - `CodeExecutionTool20260120 object`
15651565
1566 Code execution tool with REPL state persistence (daemon mode + gVisor checkpoint).
1566 A `tools` entry for the code execution tool, version `code_execution_20260120`. It adds REPL state persistence to version `code_execution_20250825`.
1567
1568 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.
1569
1570 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.
15671571
15681572 - `type: "code_execution_20260120"`
15691573
No line in this hunk matches that.