Count tokens in a Message changedapi/beta/messages/count_tokens
Nearest release: v2.1.238, 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+885added
Lines−129removed
From line
21
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits26to this page, all time
The whole hunk
from line 21, old and new numbered
/
The two sides of this change are more than 400 edits apart, too far apart to line up, so this is the differ's own diff of it and the words inside a line are not marked.
from line 21
2121
2222 - `string`
2323
24 - `"message-batches-2024-09-24" or "prompt-caching-2024-07-31" or "computer-use-2024-10-22" or 30 more`
24 - `"message-batches-2024-09-24" or "prompt-caching-2024-07-31" or "computer-use-2024-10-22" or 31 more`
2525
2626 - `"message-batches-2024-09-24"`
2727
from line 66
6666 - `"output-300k-2026-03-24"`
6767
6868 - `"user-profiles-2026-03-24"`
69
70 - `"user-profiles-2026-08-18"`
6971
7072 - `"advisor-tool-2026-03-01"`
7173
from line 291
289291
290292 - `"search_result_location"`
291293
292 - `BetaImageBlockParam object { source, type, cache_control }`
294 - `BetaImageBlockParam object { source, type, cache_control, transformations }`
293295
294296 - `source: BetaBase64ImageSource or BetaURLImageSource or BetaFileImageSource`
295297
from line 337
335337
336338 Create a cache control breakpoint at this content block.
337339
340 - `transformations: optional BetaImageTransformationsParam or null`
341
342 Configures the transformations the server applies to this image before the model observes it. Each key names a condition the server transforms images for; its value selects the transformation applied. Omitted keys keep their default behavior, and an empty object is equivalent to omitting the field.
343
344 - `oversized_image: optional "downsize" or "error"`
345
346 What the server does when this image exceeds the model's maximum image size. `"downsize"` (the default) scales the image down to fit, which changes the dimensions the model observes without telling you. `"error"` instead rejects the request with a 400 error naming the image's dimensions and the largest dimensions that fit, so you can scale the image deliberately — your image is never silently scaled down.
347
348 - `"downsize"`
349
350 - `"error"`
351
338352 - `BetaRequestDocumentBlock object { source, type, cache_control, 3 more }`
339353
340354 - `source: BetaBase64PDFSource or BetaPlainTextSource or BetaContentBlockSource or 2 more`
from line 387
373387
374388 - `BetaTextBlockParam object { text, type, cache_control, citations }`
375389
376 - `BetaImageBlockParam object { source, type, cache_control }`
390 - `BetaImageBlockParam object { source, type, cache_control, transformations }`
377391
378392 - `type: "content"`
379393
from line 479
465479
466480 - `"redacted_thinking"`
467481
468 - `BetaToolUseBlockParam object { id, input, name, 3 more }`
482 - `BetaToolUseBlockParam object { id, input, name, 4 more }`
469483
470484 - `id: string`
471485
from line 525
511525
512526 - `"code_execution_20260120"`
513527
514 - `BetaToolResultBlockParam object { tool_use_id, type, cache_control, 2 more }`
528 - `toolset_name: optional string or null`
529
530 For a toolset member tool_use, the toolset family this member belongs to.
531
532 - `BetaToolResultBlockParam object { tool_use_id, type, cache_control, 3 more }`
515533
516534 - `tool_use_id: string`
517535
from line 541
523541
524542 Create a cache control breakpoint at this content block.
525543
526 - `content: optional string or array of BetaTextBlockParam or BetaImageBlockParam or BetaSearchResultBlockParam or 2 more`
544 - `content: optional string or array of BetaTextBlockParam or BetaImageBlockParam or BetaSearchResultBlockParam or 3 more`
527545
528546 - `string`
529547
530 - `array of BetaTextBlockParam or BetaImageBlockParam or BetaSearchResultBlockParam or 2 more`
548 - `array of BetaTextBlockParam or BetaImageBlockParam or BetaSearchResultBlockParam or 3 more`
531549
532550 - `BetaTextBlockParam object { text, type, cache_control, citations }`
533551
534 - `BetaImageBlockParam object { source, type, cache_control }`
552 - `BetaImageBlockParam object { source, type, cache_control, transformations }`
535553
536554 - `BetaSearchResultBlockParam object { content, source, title, 3 more }`
537555
from line 569
551569
552570 Create a cache control breakpoint at this content block.
553571
572 - `BetaBrowserStateBlockParam object { tabs, type, cache_control, state_changes }`
573
574 The caller's browser state after a browser toolset member call —
575 the full inventory of open tabs, which tab is active, and any side
576 effects (tabs opened, download state changes) the call produced.
577
578 At most one per `tool_result`, only on a non-error result answering a
579 browser toolset member `tool_use`. The server renders the
580 model-visible text from it; the model never sees the raw fields.
581
582 - `tabs: array of BetaBrowserStateTabEntry`
583
584 All tabs open in the browser after this call — the full inventory, not a delta. May be empty. Whenever non-empty, exactly one entry carries `active: true`.
585
586 - `tab_id: string`
587
588 The caller-assigned identifier for this tab, unique within the inventory.
589
590 - `title: string`
591
592 The title of the page the tab is showing. May be empty.
593
594 - `url: string`
595
596 The URL of the page the tab is showing. May be empty.
597
598 - `active: optional boolean`
599
600 Whether this tab is the active tab after this call. Whenever `tabs` is non-empty, exactly one entry is marked `active: true`.
601
602 - `type: "browser_state"`
603
604 - `"browser_state"`
605
606 - `cache_control: optional BetaCacheControlEphemeral or null`
607
608 Create a cache control breakpoint at this content block.
609
610 - `state_changes: optional array of BetaBrowserStateChange or null`
611
612 Tabs opened and download state changes during this call. "Nothing to report" is expressed by omitting the field, never by an empty list.
613
614 - `BetaBrowserStateChangeTabOpened object { tab_id, type }`
615
616 A tab this call's execution opened that remains open at its end —
617 the creation delta of the `tabs` inventory, not an event log.
618
619 Carries only the `tab_id`; the tab's `title` and `url` live on its
620 `tabs` entry, which must include the same `tab_id`. A tab opened
621 during a failed call gets no deferred `tab_opened`; it simply appears
622 in the next result's `tabs` inventory.
623
624 - `tab_id: string`
625
626 The `tab_id` of the opened tab, present in `tabs`.
627
628 - `type: "tab_opened"`
629
630 - `"tab_opened"`
631
632 - `BetaBrowserStateChangeDownloadStarted object { download_id, type, url }`
633
634 A file download that started during this call.
635
636 - `download_id: string`
637
638 The caller-assigned identifier for this download, stable across the state changes reporting it.
639
640 - `type: "download_started"`
641
642 - `"download_started"`
643
644 - `url: string`
645
646 The final post-redirect URL the download was served from.
647
648 - `BetaBrowserStateChangeDownloadCompleted object { download_id, type, url, 2 more }`
649
650 A file download that finished during this call, reported with the
651 same `download_id` as its `download_started` — or without a prior
652 `download_started`, when the download finished during the call that
653 started it (at most one state change per `download_id` per result).
654
655 - `download_id: string`
656
657 The caller-assigned identifier for this download, stable across the state changes reporting it.
658
659 - `type: "download_completed"`
660
661 - `"download_completed"`
662
663 - `url: string`
664
665 The final post-redirect URL the download was served from.
666
667 - `path: optional string or null`
668
669 Where the executor saved the file, on the executor's filesystem. Only included when another tool in the same environment can read the file at that path.
670
671 - `size_bytes: optional number or null`
672
673 The completed download's size.
674
675 - `BetaBrowserStateChangeDownloadFailed object { download_id, type, url, error }`
676
677 A file download that failed — or was cancelled — during this call.
678
679 - `download_id: string`
680
681 The caller-assigned identifier for this download, stable across the state changes reporting it.
682
683 - `type: "download_failed"`
684
685 - `"download_failed"`
686
687 - `url: string`
688
689 The final post-redirect URL the download was served from.
690
691 - `error: optional string or null`
692
693 The failure or cancellation detail, when known.
694
554695 - `is_error: optional boolean`
696
697 - `toolset_name: optional string or null`
698
699 For a toolset member tool_result, the toolset family of the paired tool_use.
555700
556701 - `BetaServerToolUseBlockParam object { id, input, name, 3 more }`
557702
from line 1276
11311276 - `encrypted_content: optional string or null`
11321277
11331278 Opaque metadata from prior compaction, to be round-tripped verbatim
1134
1135 - `BetaMidConversationSystemBlockParam object { content, type, cache_control }`
1136
1137 System instructions that appear mid-conversation.
1138
1139 Use this block to provide or update system-level instructions at a specific
1140 point in the conversation, rather than only via the top-level `system` parameter.
1141
1142 - `content: array of BetaTextBlockParam or BetaRequestToolAdditionBlock or BetaRequestToolRemovalBlock`
1143
1144 System instruction text blocks.
1145
1146 - `BetaTextBlockParam object { text, type, cache_control, citations }`
1147
1148 - `BetaRequestToolAdditionBlock object { tool, type, cache_control }`
1149
1150 Mid-conversation directive to surface a declared tool.
1151
1152 `tool` references a tool (or MCP toolset) by name from the request's
1153 `tools`; it is offered to the model from this point in the
1154 conversation onward.
1155
1156 - `tool: BetaToolChangeToolReference or BetaToolChangeMCPToolReference or BetaToolChangeMCPToolsetReference`
1157
1158 Reference to a single tool the caller declared directly in
1159 `tools[]`. Does not accept the composed `{server}_{name}` form the
1160 server assigns to MCP-resolved tools — use `mcp_tool_reference` or
1161 `mcp_toolset_reference` for those.
1162
1163 - `BetaToolChangeToolReference object { name, type }`
1164
1165 Reference to a single tool the caller declared directly in
1166 `tools[]`. Does not accept the composed `{server}_{name}` form the
1167 server assigns to MCP-resolved tools — use `mcp_tool_reference` or
1168 `mcp_toolset_reference` for those.
1169
1170 - `name: string`
1171
1172 - `type: "tool_reference"`
1173
1174 - `"tool_reference"`
1175
1176 - `BetaToolChangeMCPToolReference object { name, server_name, type }`
1177
1178 Reference to a single MCP tool by its server and remote name — the
1179 same `server_name`/`name` pair `mcp_tool_use` carries.
1180
1181 - `name: string`
1182
1183 - `server_name: string`
1184
1185 - `type: "mcp_tool_reference"`
1186
1187 - `"mcp_tool_reference"`
1188
1189 - `BetaToolChangeMCPToolsetReference object { server_name, type }`
1190
1191 Reference to every tool in the named MCP server's toolset.
1192
1193 - `server_name: string`
1194
1195 - `type: "mcp_toolset_reference"`
1196
1197 - `"mcp_toolset_reference"`
1198
1199 - `type: "tool_addition"`
1200
1201 - `"tool_addition"`
1202
1203 - `cache_control: optional BetaCacheControlEphemeral or null`
1204
1205 Create a cache control breakpoint at this content block.
1206
1207 - `BetaRequestToolRemovalBlock object { tool, type, cache_control }`
1208
1209 Mid-conversation directive to withdraw a tool.
1210
1211 `tool` references a tool (or MCP toolset) by name from the request's
1212 `tools`; it is no longer offered to the model from this point in the
1213 conversation onward.
1214
1215 - `tool: BetaToolChangeToolReference or BetaToolChangeMCPToolReference or BetaToolChangeMCPToolsetReference`
1216
1217 Reference to a single tool the caller declared directly in
1218 `tools[]`. Does not accept the composed `{server}_{name}` form the
1219 server assigns to MCP-resolved tools — use `mcp_tool_reference` or
1220 `mcp_toolset_reference` for those.
1221
1222 - `BetaToolChangeToolReference object { name, type }`
1223
1224 Reference to a single tool the caller declared directly in
1225 `tools[]`. Does not accept the composed `{server}_{name}` form the
1226 server assigns to MCP-resolved tools — use `mcp_tool_reference` or
1227 `mcp_toolset_reference` for those.
1228
1229 - `BetaToolChangeMCPToolReference object { name, server_name, type }`
1230
1231 Reference to a single MCP tool by its server and remote name — the
1232 same `server_name`/`name` pair `mcp_tool_use` carries.
1233
1234 - `BetaToolChangeMCPToolsetReference object { server_name, type }`
1235
1236 Reference to every tool in the named MCP server's toolset.
1237
1238 - `type: "tool_removal"`
1239
1240 - `"tool_removal"`
1241
1242 - `cache_control: optional BetaCacheControlEphemeral or null`
1243
1244 Create a cache control breakpoint at this content block.
1245
1246 - `type: "mid_conv_system"`
1247
1248 - `"mid_conv_system"`
1249
1250 - `cache_control: optional BetaCacheControlEphemeral or null`
1251
1252 Create a cache control breakpoint at this content block.
12531279
12541280 - `BetaRequestToolAdditionBlock object { tool, type, cache_control }`
12551281
from line 1285
12591285 `tools`; it is offered to the model from this point in the
12601286 conversation onward.
12611287
1288 - `tool: BetaToolChangeToolReference or BetaToolChangeMCPToolReference or BetaToolChangeMCPToolsetReference`
1289
1290 Reference to a single tool the caller declared directly in
1291 `tools[]`. Does not accept the composed `{server}_{name}` form the
1292 server assigns to MCP-resolved tools — use `mcp_tool_reference` or
1293 `mcp_toolset_reference` for those.
1294
1295 - `BetaToolChangeToolReference object { name, type }`
1296
1297 Reference to a single tool the caller declared directly in
1298 `tools[]`. Does not accept the composed `{server}_{name}` form the
1299 server assigns to MCP-resolved tools — use `mcp_tool_reference` or
1300 `mcp_toolset_reference` for those.
1301
1302 - `name: string`
1303
1304 - `type: "tool_reference"`
1305
1306 - `"tool_reference"`
1307
1308 - `BetaToolChangeMCPToolReference object { name, server_name, type }`
1309
1310 Reference to a single MCP tool by its server and remote name — the
1311 same `server_name`/`name` pair `mcp_tool_use` carries.
1312
1313 - `name: string`
1314
1315 - `server_name: string`
1316
1317 - `type: "mcp_tool_reference"`
1318
1319 - `"mcp_tool_reference"`
1320
1321 - `BetaToolChangeMCPToolsetReference object { server_name, type }`
1322
1323 Reference to every tool in the named MCP server's toolset.
1324
1325 - `server_name: string`
1326
1327 - `type: "mcp_toolset_reference"`
1328
1329 - `"mcp_toolset_reference"`
1330
1331 - `type: "tool_addition"`
1332
1333 - `"tool_addition"`
1334
1335 - `cache_control: optional BetaCacheControlEphemeral or null`
1336
1337 Create a cache control breakpoint at this content block.
1338
12621339 - `BetaRequestToolRemovalBlock object { tool, type, cache_control }`
12631340
12641341 Mid-conversation directive to withdraw a tool.
from line 1343
12661343 `tool` references a tool (or MCP toolset) by name from the request's
12671344 `tools`; it is no longer offered to the model from this point in the
12681345 conversation onward.
1346
1347 - `tool: BetaToolChangeToolReference or BetaToolChangeMCPToolReference or BetaToolChangeMCPToolsetReference`
1348
1349 Reference to a single tool the caller declared directly in
1350 `tools[]`. Does not accept the composed `{server}_{name}` form the
1351 server assigns to MCP-resolved tools — use `mcp_tool_reference` or
1352 `mcp_toolset_reference` for those.
1353
1354 - `BetaToolChangeToolReference object { name, type }`
1355
1356 Reference to a single tool the caller declared directly in
1357 `tools[]`. Does not accept the composed `{server}_{name}` form the
1358 server assigns to MCP-resolved tools — use `mcp_tool_reference` or
1359 `mcp_toolset_reference` for those.
1360
1361 - `BetaToolChangeMCPToolReference object { name, server_name, type }`
1362
1363 Reference to a single MCP tool by its server and remote name — the
1364 same `server_name`/`name` pair `mcp_tool_use` carries.
1365
1366 - `BetaToolChangeMCPToolsetReference object { server_name, type }`
1367
1368 Reference to every tool in the named MCP server's toolset.
1369
1370 - `type: "tool_removal"`
1371
1372 - `"tool_removal"`
1373
1374 - `cache_control: optional BetaCacheControlEphemeral or null`
1375
1376 Create a cache control breakpoint at this content block.
12691377
12701378 - `BetaFallbackBlockParam object { from, to, type, trigger }`
12711379
from line 1825
17171825
17181826 - `"none"`
17191827
1720- `tools: optional array of BetaTool or BetaToolBash20241022 or BetaToolBash20250124 or 23 more`
1828- `tools: optional array of BetaTool or BetaToolBash20241022 or BetaToolBash20250124 or 25 more`
17211829
17221830 Definitions of tools that the model may use.
17231831
from line 2173
20652173
20662174 When true, guarantees schema validation on tool names and inputs
20672175
2176 - `BetaBrowserToolset20260801 object { type, allowed_callers, cache_control, configs }`
2177
2178 The browser toolset: a single `tools[]` entry (carrying no
2179 `name`) that declares the browser tool family. The model is served
2180 the family's tool with any members disabled via `configs` removed
2181 from its schema.
2182
2183 - `type: "browser_toolset_20260801"`
2184
2185 - `"browser_toolset_20260801"`
2186
2187 - `allowed_callers: optional array of "direct" or "code_execution_20250825" or "code_execution_20260120" or "code_execution_20260521"`
2188
2189 - `"direct"`
2190
2191 - `"code_execution_20250825"`
2192
2193 - `"code_execution_20260120"`
2194
2195 - `"code_execution_20260521"`
2196
2197 - `cache_control: optional BetaCacheControlEphemeral or null`
2198
2199 Create a cache control breakpoint at this content block.
2200
2201 - `configs: optional BetaBrowserToolsetConfigs or null`
2202
2203 Per-member configuration for `browser_toolset_20260801`: one
2204 optional field per member tool, keyed by the member name — the same
2205 name the member's `tool_use` blocks carry. Every member is an
2206 accepted key, and a member's defaults apply wherever its key is
2207 absent. Unknown keys are rejected: the field set is this toolset
2208 version's complete member set.
2209
2210 - `close_tab: optional BetaBrowserCloseTabConfig or null`
2211
2212 `close_tab`'s config overrides.
2213
2214 - `defer_loading: optional boolean or null`
2215
2216 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2217
2218 - `enabled: optional boolean or null`
2219
2220 Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema.
2221
2222 - `double_click: optional BetaBrowserDoubleClickConfig or null`
2223
2224 `double_click`'s config overrides.
2225
2226 - `defer_loading: optional boolean or null`
2227
2228 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2229
2230 - `enabled: optional boolean or null`
2231
2232 Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema.
2233
2234 - `file_upload: optional BetaBrowserFileUploadConfig or null`
2235
2236 `file_upload`'s config overrides.
2237
2238 - `defer_loading: optional boolean or null`
2239
2240 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2241
2242 - `enabled: optional boolean or null`
2243
2244 Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema.
2245
2246 - `find: optional BetaBrowserFindConfig or null`
2247
2248 `find`'s config overrides.
2249
2250 - `defer_loading: optional boolean or null`
2251
2252 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2253
2254 - `enabled: optional boolean or null`
2255
2256 Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema.
2257
2258 - `form_input: optional BetaBrowserFormInputConfig or null`
2259
2260 `form_input`'s config overrides.
2261
2262 - `defer_loading: optional boolean or null`
2263
2264 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2265
2266 - `enabled: optional boolean or null`
2267
2268 Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema.
2269
2270 - `get_page_text: optional BetaBrowserGetPageTextConfig or null`
2271
2272 `get_page_text`'s config overrides.
2273
2274 - `defer_loading: optional boolean or null`
2275
2276 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2277
2278 - `enabled: optional boolean or null`
2279
2280 Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema.
2281
2282 - `hold_key: optional BetaBrowserHoldKeyConfig or null`
2283
2284 `hold_key`'s config overrides.
2285
2286 - `defer_loading: optional boolean or null`
2287
2288 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2289
2290 - `enabled: optional boolean or null`
2291
2292 Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema.
2293
2294 - `hover: optional BetaBrowserHoverConfig or null`
2295
2296 `hover`'s config overrides.
2297
2298 - `defer_loading: optional boolean or null`
2299
2300 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2301
2302 - `enabled: optional boolean or null`
2303
2304 Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema.
2305
2306 - `javascript_exec: optional BetaBrowserJavascriptExecConfig or null`
2307
2308 `javascript_exec`'s config overrides.
2309
2310 - `defer_loading: optional boolean or null`
2311
2312 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2313
2314 - `enabled: optional boolean or null`
2315
2316 Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema.
2317
2318 - `key: optional BetaBrowserKeyConfig or null`
2319
2320 `key`'s config overrides.
2321
2322 - `defer_loading: optional boolean or null`
2323
2324 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2325
2326 - `enabled: optional boolean or null`
2327
2328 Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema.
2329
2330 - `left_click: optional BetaBrowserLeftClickConfig or null`
2331
2332 `left_click`'s config overrides.
2333
2334 - `defer_loading: optional boolean or null`
2335
2336 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2337
2338 - `enabled: optional boolean or null`
2339
2340 Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema.
2341
2342 - `left_click_drag: optional BetaBrowserLeftClickDragConfig or null`
2343
2344 `left_click_drag`'s config overrides.
2345
2346 - `defer_loading: optional boolean or null`
2347
2348 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2349
2350 - `enabled: optional boolean or null`
2351
2352 Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema.
2353
2354 - `left_mouse_down: optional BetaBrowserLeftMouseDownConfig or null`
2355
2356 `left_mouse_down`'s config overrides.
2357
2358 - `defer_loading: optional boolean or null`
2359
2360 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2361
2362 - `enabled: optional boolean or null`
2363
2364 Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema.
2365
2366 - `left_mouse_up: optional BetaBrowserLeftMouseUpConfig or null`
2367
2368 `left_mouse_up`'s config overrides.
2369
2370 - `defer_loading: optional boolean or null`
2371
2372 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2373
2374 - `enabled: optional boolean or null`
2375
2376 Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema.
2377
2378 - `list_tabs: optional BetaBrowserListTabsConfig or null`
2379
2380 `list_tabs`'s config overrides.
2381
2382 - `defer_loading: optional boolean or null`
2383
2384 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2385
2386 - `enabled: optional boolean or null`
2387
2388 Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema.
2389
2390 - `middle_click: optional BetaBrowserMiddleClickConfig or null`
2391
2392 `middle_click`'s config overrides.
2393
2394 - `defer_loading: optional boolean or null`
2395
2396 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2397
2398 - `enabled: optional boolean or null`
2399
2400 Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema.
2401
2402 - `mouse_move: optional BetaBrowserMouseMoveConfig or null`
2403
2404 `mouse_move`'s config overrides.
2405
2406 - `defer_loading: optional boolean or null`
2407
2408 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2409
2410 - `enabled: optional boolean or null`
2411
2412 Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema.
2413
2414 - `navigate: optional BetaBrowserNavigateConfig or null`
2415
2416 `navigate`'s config overrides.
2417
2418 - `defer_loading: optional boolean or null`
2419
2420 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2421
2422 - `enabled: optional boolean or null`
2423
2424 Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema.
2425
2426 - `new_tab: optional BetaBrowserNewTabConfig or null`
2427
2428 `new_tab`'s config overrides.
2429
2430 - `defer_loading: optional boolean or null`
2431
2432 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2433
2434 - `enabled: optional boolean or null`
2435
2436 Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema.
2437
2438 - `read_console: optional BetaBrowserReadConsoleConfig or null`
2439
2440 `read_console`'s config overrides.
2441
2442 - `defer_loading: optional boolean or null`
2443
2444 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2445
2446 - `enabled: optional boolean or null`
2447
2448 Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema.
2449
2450 - `read_network: optional BetaBrowserReadNetworkConfig or null`
2451
2452 `read_network`'s config overrides.
2453
2454 - `defer_loading: optional boolean or null`
2455
2456 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2457
2458 - `enabled: optional boolean or null`
2459
2460 Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema.
2461
2462 - `read_page: optional BetaBrowserReadPageConfig or null`
2463
2464 `read_page`'s config overrides.
2465
2466 - `defer_loading: optional boolean or null`
2467
2468 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2469
2470 - `enabled: optional boolean or null`
2471
2472 Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema.
2473
2474 - `right_click: optional BetaBrowserRightClickConfig or null`
2475
2476 `right_click`'s config overrides.
2477
2478 - `defer_loading: optional boolean or null`
2479
2480 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2481
2482 - `enabled: optional boolean or null`
2483
2484 Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema.
2485
2486 - `screenshot: optional BetaBrowserScreenshotConfig or null`
2487
2488 `screenshot`'s config overrides.
2489
2490 - `defer_loading: optional boolean or null`
2491
2492 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2493
2494 - `enabled: optional boolean or null`
2495
2496 Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema.
2497
2498 - `scroll: optional BetaBrowserScrollConfig or null`
2499
2500 `scroll`'s config overrides.
2501
2502 - `defer_loading: optional boolean or null`
2503
2504 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2505
2506 - `enabled: optional boolean or null`
2507
2508 Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema.
2509
2510 - `scroll_to: optional BetaBrowserScrollToConfig or null`
2511
2512 `scroll_to`'s config overrides.
2513
2514 - `defer_loading: optional boolean or null`
2515
2516 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2517
2518 - `enabled: optional boolean or null`
2519
2520 Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema.
2521
2522 - `switch_tab: optional BetaBrowserSwitchTabConfig or null`
2523
2524 `switch_tab`'s config overrides.
2525
2526 - `defer_loading: optional boolean or null`
2527
2528 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2529
2530 - `enabled: optional boolean or null`
2531
2532 Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema.
2533
2534 - `triple_click: optional BetaBrowserTripleClickConfig or null`
2535
2536 `triple_click`'s config overrides.
2537
2538 - `defer_loading: optional boolean or null`
2539
2540 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2541
2542 - `enabled: optional boolean or null`
2543
2544 Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema.
2545
2546 - `type: optional BetaBrowserTypeConfig or null`
2547
2548 `type`'s config overrides.
2549
2550 - `defer_loading: optional boolean or null`
2551
2552 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2553
2554 - `enabled: optional boolean or null`
2555
2556 Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema.
2557
2558 - `wait: optional BetaBrowserWaitConfig or null`
2559
2560 `wait`'s config overrides.
2561
2562 - `defer_loading: optional boolean or null`
2563
2564 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2565
2566 - `enabled: optional boolean or null`
2567
2568 Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema.
2569
2570 - `zoom: optional BetaBrowserZoomConfig or null`
2571
2572 `zoom`'s config overrides.
2573
2574 - `defer_loading: optional boolean or null`
2575
2576 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2577
2578 - `enabled: optional boolean or null`
2579
2580 Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema.
2581
20682582 - `BetaToolComputerUse20241022 object { display_height_px, display_width_px, name, 7 more }`
20692583
20702584 - `display_height_px: number`
from line 2808
22942808 - `strict: optional boolean`
22952809
22962810 When true, guarantees schema validation on tool names and inputs
2811
2812 - `BetaComputerToolset20260801 object { type, allowed_callers, cache_control, configs }`
2813
2814 The computer toolset: a single `tools[]` entry (carrying no
2815 `name`) that declares the computer tool family. The model is
2816 served the family's tool with any members disabled via `configs`
2817 removed from its schema. Every member is enabled by default, zoom
2818 included. The single-tool options `display_number` and
2819 `enable_zoom` are not fields of a toolset entry — it carries only
2820 `type`, `configs`, and `cache_control`; zoom is controlled
2821 via `configs.zoom.enabled`.
2822
2823 - `type: "computer_toolset_20260801"`
2824
2825 - `"computer_toolset_20260801"`
2826
2827 - `allowed_callers: optional array of "direct" or "code_execution_20250825" or "code_execution_20260120" or "code_execution_20260521"`
2828
2829 - `"direct"`
2830
2831 - `"code_execution_20250825"`
2832
2833 - `"code_execution_20260120"`
2834
2835 - `"code_execution_20260521"`
2836
2837 - `cache_control: optional BetaCacheControlEphemeral or null`
2838
2839 Create a cache control breakpoint at this content block.
2840
2841 - `configs: optional BetaComputerToolsetConfigs or null`
2842
2843 Per-member configuration for `computer_toolset_20260801`: one
2844 optional field per member tool, keyed by the member name — the same
2845 name the member's `tool_use` blocks carry. Every member is an
2846 accepted key, and a member's defaults apply wherever its key is
2847 absent. Unknown keys are rejected: the field set is this toolset
2848 version's complete member set.
2849
2850 - `cursor_position: optional BetaComputerCursorPositionConfig or null`
2851
2852 `cursor_position`'s config overrides.
2853
2854 - `defer_loading: optional boolean or null`
2855
2856 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2857
2858 - `enabled: optional boolean or null`
2859
2860 Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema.
2861
2862 - `double_click: optional BetaComputerDoubleClickConfig or null`
2863
2864 `double_click`'s config overrides.
2865
2866 - `defer_loading: optional boolean or null`
2867
2868 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2869
2870 - `enabled: optional boolean or null`
2871
2872 Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema.
2873
2874 - `hold_key: optional BetaComputerHoldKeyConfig or null`
2875
2876 `hold_key`'s config overrides.
2877
2878 - `defer_loading: optional boolean or null`
2879
2880 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2881
2882 - `enabled: optional boolean or null`
2883
2884 Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema.
2885
2886 - `key: optional BetaComputerKeyConfig or null`
2887
2888 `key`'s config overrides.
2889
2890 - `defer_loading: optional boolean or null`
2891
2892 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2893
2894 - `enabled: optional boolean or null`
2895
2896 Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema.
2897
2898 - `left_click: optional BetaComputerLeftClickConfig or null`
2899
2900 `left_click`'s config overrides.
2901
2902 - `defer_loading: optional boolean or null`
2903
2904 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2905
2906 - `enabled: optional boolean or null`
2907
2908 Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema.
2909
2910 - `left_click_drag: optional BetaComputerLeftClickDragConfig or null`
2911
2912 `left_click_drag`'s config overrides.
2913
2914 - `defer_loading: optional boolean or null`
2915
2916 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2917
2918 - `enabled: optional boolean or null`
2919
2920 Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema.
2921
2922 - `left_mouse_down: optional BetaComputerLeftMouseDownConfig or null`
2923
2924 `left_mouse_down`'s config overrides.
2925
2926 - `defer_loading: optional boolean or null`
2927
2928 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2929
2930 - `enabled: optional boolean or null`
2931
2932 Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema.
2933
2934 - `left_mouse_up: optional BetaComputerLeftMouseUpConfig or null`
2935
2936 `left_mouse_up`'s config overrides.
2937
2938 - `defer_loading: optional boolean or null`
2939
2940 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2941
2942 - `enabled: optional boolean or null`
2943
2944 Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema.
2945
2946 - `middle_click: optional BetaComputerMiddleClickConfig or null`
2947
2948 `middle_click`'s config overrides.
2949
2950 - `defer_loading: optional boolean or null`
2951
2952 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2953
2954 - `enabled: optional boolean or null`
2955
2956 Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema.
2957
2958 - `mouse_move: optional BetaComputerMouseMoveConfig or null`
2959
2960 `mouse_move`'s config overrides.
2961
2962 - `defer_loading: optional boolean or null`
2963
2964 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2965
2966 - `enabled: optional boolean or null`
2967
2968 Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema.
2969
2970 - `right_click: optional BetaComputerRightClickConfig or null`
2971
2972 `right_click`'s config overrides.
2973
2974 - `defer_loading: optional boolean or null`
2975
2976 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2977
2978 - `enabled: optional boolean or null`
2979
2980 Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema.
2981
2982 - `screenshot: optional BetaComputerScreenshotConfig or null`
2983
2984 `screenshot`'s config overrides.
2985
2986 - `defer_loading: optional boolean or null`
2987
2988 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2989
2990 - `enabled: optional boolean or null`
2991
2992 Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema.
2993
2994 - `scroll: optional BetaComputerScrollConfig or null`
2995
2996 `scroll`'s config overrides.
2997
2998 - `defer_loading: optional boolean or null`
2999
3000 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
3001
3002 - `enabled: optional boolean or null`
3003
3004 Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema.
3005
3006 - `triple_click: optional BetaComputerTripleClickConfig or null`
3007
3008 `triple_click`'s config overrides.
3009
3010 - `defer_loading: optional boolean or null`
3011
3012 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
3013
3014 - `enabled: optional boolean or null`
3015
3016 Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema.
3017
3018 - `type: optional BetaComputerTypeConfig or null`
3019
3020 `type`'s config overrides.
3021
3022 - `defer_loading: optional boolean or null`
3023
3024 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
3025
3026 - `enabled: optional boolean or null`
3027
3028 Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema.
3029
3030 - `wait: optional BetaComputerWaitConfig or null`
3031
3032 `wait`'s config overrides.
3033
3034 - `defer_loading: optional boolean or null`
3035
3036 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
3037
3038 - `enabled: optional boolean or null`
3039
3040 Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema.
3041
3042 - `zoom: optional BetaComputerZoomConfig or null`
3043
3044 `zoom`'s config overrides.
3045
3046 - `defer_loading: optional boolean or null`
3047
3048 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
3049
3050 - `enabled: optional boolean or null`
3051
3052 Whether this member is offered to the model. Default is per member, per the toolset's documentation. A member whose enabled resolves false is withheld from the served schema.
22973053
22983054 - `BetaToolTextEditor20250124 object { name, type, allowed_callers, 4 more }`
22993055
from line 3790
30343790 "role": "user"
30353791 }
30363792 ],
3037 "model": "claude-opus-4-6",
3793 "model": "claude-opus-5",
30383794 "system": [
30393795 {
30403796 "text": "Today'\''s date is 2024-06-01.",
30413797
No line in this hunk matches that.