Sweep 22 Sep 2026 · 17:19Z Build v2.1.280 501 read Stable v2.1.267 Latest v2.1.280 Next v2.1.280 Feeds RSS JSON llms.txt Unofficial
One change · api

Count tokens in a Message changed

api/beta/messages/count_tokens

Nearest release: v2.1.277, published 4 hours 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+2added
Lines−2removed
From line 1,304 where the diff opens
First seen 14 Aug 2026 this site's first read of the page
Recorded edits10to this page, all time

The whole hunk

from line 1304, old and new numbered
/
lines
from line 1304
13041304 
13051305 - `BetaToolChangeMCPToolReference object`
13061306 
1307 Reference to a single MCP tool by its server and remote name — the
1307 Reference to a single MCP tool by its server and remote name; the
13081308 same `server_name`/`name` pair `mcp_tool_use` carries.
13091309 
13101310 - `type: "mcp_tool_reference"`
from line 1346
13461346 
13471347 - `BetaToolChangeMCPToolReference object`
13481348 
1349 Reference to a single MCP tool by its server and remote name — the
1349 Reference to a single MCP tool by its server and remote name; the
13501350 same `server_name`/`name` pair `mcp_tool_use` carries.
13511351 
13521352 - `BetaToolChangeMCPToolsetReference object`