Count tokens in a Message changedapi/messages/count_tokens
Nearest release: v2.1.269, published under an hour after 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+0added
Lines−10removed
From line
419
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 419, old and new numbered
/
from line 419
419419
420420 - `caller: optional DirectCaller or ServerToolCaller or ServerToolCaller20260120`
421421
422 Tool invocation directly from the model.
423
424422 - `DirectCaller object`
425423
426424 Tool invocation directly from the model.
from line 672
674672
675673 - `caller: optional DirectCaller or ServerToolCaller or ServerToolCaller20260120`
676674
677 Tool invocation directly from the model.
678
679675 - `DirectCaller object`
680676
681677 Tool invocation directly from the model.
from line 728
732728
733729 - `caller: optional DirectCaller or ServerToolCaller or ServerToolCaller20260120`
734730
735 Tool invocation directly from the model.
736
737731 - `DirectCaller object`
738732
739733 Tool invocation directly from the model.
from line 794
800794
801795 - `caller: optional DirectCaller or ServerToolCaller or ServerToolCaller20260120`
802796
803 Tool invocation directly from the model.
804
805797 - `DirectCaller object`
806798
807799 Tool invocation directly from the model.
from line 809
817809 - `type: "code_execution_tool_result"`
818810
819811 - `content: CodeExecutionToolResultBlockParamContent`
820
821 Code execution result with encrypted stdout for PFC + web_search results.
822812
823813 - `CodeExecutionToolResultErrorParam object`
824814
No line in this hunk matches that.