Count tokens in a Message changedapi/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+818added
Lines−40removed
From line
215
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits21to this page, all time
The whole hunk
from line 215, 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 215
215215
216216 - `"search_result_location"`
217217
218 - `ImageBlockParam object { source, type, cache_control }`
219
220 - `source: Base64ImageSource or URLImageSource`
218 - `ImageBlockParam object { source, type, cache_control, transformations }`
219
220 - `source: Base64ImageSource or URLImageSource or FileImageSource`
221221
222222 - `Base64ImageSource object { data, media_type, type }`
223223
from line 245
245245
246246 - `url: string`
247247
248 - `FileImageSource object { file_id, type }`
249
250 - `file_id: string`
251
252 - `type: "file"`
253
254 - `"file"`
255
248256 - `type: "image"`
249257
250258 - `"image"`
from line 261
253261
254262 Create a cache control breakpoint at this content block.
255263
264 - `transformations: optional ImageTransformationsParam or null`
265
266 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.
267
268 - `oversized_image: optional "downsize" or "error"`
269
270 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.
271
272 - `"downsize"`
273
274 - `"error"`
275
256276 - `DocumentBlockParam object { source, type, cache_control, 3 more }`
257277
258 - `source: Base64PDFSource or PlainTextSource or ContentBlockSource or URLPDFSource`
278 - `source: Base64PDFSource or PlainTextSource or ContentBlockSource or 2 more`
259279
260280 - `Base64PDFSource object { data, media_type, type }`
261281
from line 311
291311
292312 - `TextBlockParam object { text, type, cache_control, citations }`
293313
294 - `ImageBlockParam object { source, type, cache_control }`
314 - `ImageBlockParam object { source, type, cache_control, transformations }`
295315
296316 - `type: "content"`
297317
from line 325
305325
306326 - `url: string`
307327
328 - `FileDocumentSource object { file_id, type }`
329
330 - `file_id: string`
331
332 - `type: "file"`
333
334 - `"file"`
335
308336 - `type: "document"`
309337
310338 - `"document"`
from line 403
375403
376404 - `"redacted_thinking"`
377405
378 - `ToolUseBlockParam object { id, input, name, 3 more }`
406 - `ToolUseBlockParam object { id, input, name, 4 more }`
379407
380408 - `id: string`
381409
from line 449
421449
422450 - `"code_execution_20260120"`
423451
424 - `ToolResultBlockParam object { tool_use_id, type, cache_control, 2 more }`
452 - `toolset_name: optional string or null`
453
454 For a toolset member tool_use, the toolset family this member belongs to.
455
456 - `ToolResultBlockParam object { tool_use_id, type, cache_control, 3 more }`
425457
426458 - `tool_use_id: string`
427459
from line 465
433465
434466 Create a cache control breakpoint at this content block.
435467
436 - `content: optional string or array of TextBlockParam or ImageBlockParam or SearchResultBlockParam or 2 more`
468 - `content: optional string or array of TextBlockParam or ImageBlockParam or SearchResultBlockParam or 3 more`
437469
438470 - `string`
439471
440 - `array of TextBlockParam or ImageBlockParam or SearchResultBlockParam or 2 more`
472 - `array of TextBlockParam or ImageBlockParam or SearchResultBlockParam or 3 more`
441473
442474 - `TextBlockParam object { text, type, cache_control, citations }`
443475
444 - `ImageBlockParam object { source, type, cache_control }`
476 - `ImageBlockParam object { source, type, cache_control, transformations }`
445477
446478 - `SearchResultBlockParam object { content, source, title, 3 more }`
447479
from line 493
461493
462494 Create a cache control breakpoint at this content block.
463495
496 - `BrowserStateBlockParam object { tabs, type, cache_control, state_changes }`
497
498 The caller's browser state after a browser toolset member call —
499 the full inventory of open tabs, which tab is active, and any side
500 effects (tabs opened, download state changes) the call produced.
501
502 At most one per `tool_result`, only on a non-error result answering a
503 browser toolset member `tool_use`. The server renders the
504 model-visible text from it; the model never sees the raw fields.
505
506 - `tabs: array of BrowserStateTabEntry`
507
508 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`.
509
510 - `tab_id: string`
511
512 The caller-assigned identifier for this tab, unique within the inventory.
513
514 - `title: string`
515
516 The title of the page the tab is showing. May be empty.
517
518 - `url: string`
519
520 The URL of the page the tab is showing. May be empty.
521
522 - `active: optional boolean`
523
524 Whether this tab is the active tab after this call. Whenever `tabs` is non-empty, exactly one entry is marked `active: true`.
525
526 - `type: "browser_state"`
527
528 - `"browser_state"`
529
530 - `cache_control: optional CacheControlEphemeral or null`
531
532 Create a cache control breakpoint at this content block.
533
534 - `state_changes: optional array of BrowserStateChange or null`
535
536 Tabs opened and download state changes during this call. "Nothing to report" is expressed by omitting the field, never by an empty list.
537
538 - `BrowserStateChangeTabOpened object { tab_id, type }`
539
540 A tab this call's execution opened that remains open at its end —
541 the creation delta of the `tabs` inventory, not an event log.
542
543 Carries only the `tab_id`; the tab's `title` and `url` live on its
544 `tabs` entry, which must include the same `tab_id`. A tab opened
545 during a failed call gets no deferred `tab_opened`; it simply appears
546 in the next result's `tabs` inventory.
547
548 - `tab_id: string`
549
550 The `tab_id` of the opened tab, present in `tabs`.
551
552 - `type: "tab_opened"`
553
554 - `"tab_opened"`
555
556 - `BrowserStateChangeDownloadStarted object { download_id, type, url }`
557
558 A file download that started during this call.
559
560 - `download_id: string`
561
562 The caller-assigned identifier for this download, stable across the state changes reporting it.
563
564 - `type: "download_started"`
565
566 - `"download_started"`
567
568 - `url: string`
569
570 The final post-redirect URL the download was served from.
571
572 - `BrowserStateChangeDownloadCompleted object { download_id, type, url, 2 more }`
573
574 A file download that finished during this call, reported with the
575 same `download_id` as its `download_started` — or without a prior
576 `download_started`, when the download finished during the call that
577 started it (at most one state change per `download_id` per result).
578
579 - `download_id: string`
580
581 The caller-assigned identifier for this download, stable across the state changes reporting it.
582
583 - `type: "download_completed"`
584
585 - `"download_completed"`
586
587 - `url: string`
588
589 The final post-redirect URL the download was served from.
590
591 - `path: optional string or null`
592
593 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.
594
595 - `size_bytes: optional number or null`
596
597 The completed download's size.
598
599 - `BrowserStateChangeDownloadFailed object { download_id, type, url, error }`
600
601 A file download that failed — or was cancelled — during this call.
602
603 - `download_id: string`
604
605 The caller-assigned identifier for this download, stable across the state changes reporting it.
606
607 - `type: "download_failed"`
608
609 - `"download_failed"`
610
611 - `url: string`
612
613 The final post-redirect URL the download was served from.
614
615 - `error: optional string or null`
616
617 The failure or cancellation detail, when known.
618
464619 - `is_error: optional boolean`
620
621 - `toolset_name: optional string or null`
622
623 For a toolset member tool_result, the toolset family of the paired tool_use.
465624
466625 - `ServerToolUseBlockParam object { id, input, name, 3 more }`
467626
from line 1060
9011060 - `type: "container_upload"`
9021061
9031062 - `"container_upload"`
904
905 - `cache_control: optional CacheControlEphemeral or null`
906
907 Create a cache control breakpoint at this content block.
908
909 - `MidConversationSystemBlockParam object { content, type, cache_control }`
910
911 System instructions that appear mid-conversation.
912
913 Use this block to provide or update system-level instructions at a specific
914 point in the conversation, rather than only via the top-level `system` parameter.
915
916 - `content: array of TextBlockParam`
917
918 System instruction text blocks.
919
920 - `text: string`
921
922 - `type: "text"`
923
924 - `cache_control: optional CacheControlEphemeral or null`
925
926 Create a cache control breakpoint at this content block.
927
928 - `citations: optional array of TextCitationParam or null`
929
930 - `type: "mid_conv_system"`
931
932 - `"mid_conv_system"`
9331063
9341064 - `cache_control: optional CacheControlEphemeral or null`
9351065
from line 1619
14891619
14901620 When true, guarantees schema validation on tool names and inputs
14911621
1622 - `BrowserToolset20260801 object { type, allowed_callers, cache_control, configs }`
1623
1624 The browser toolset: a single `tools[]` entry (carrying no
1625 `name`) that declares the browser tool family. The model is served
1626 the family's tool with any members disabled via `configs` removed
1627 from its schema.
1628
1629 - `type: "browser_toolset_20260801"`
1630
1631 - `"browser_toolset_20260801"`
1632
1633 - `allowed_callers: optional array of "direct" or "code_execution_20250825" or "code_execution_20260120" or "code_execution_20260521"`
1634
1635 - `"direct"`
1636
1637 - `"code_execution_20250825"`
1638
1639 - `"code_execution_20260120"`
1640
1641 - `"code_execution_20260521"`
1642
1643 - `cache_control: optional CacheControlEphemeral or null`
1644
1645 Create a cache control breakpoint at this content block.
1646
1647 - `configs: optional BrowserToolsetConfigs or null`
1648
1649 Per-member configuration for `browser_toolset_20260801`: one
1650 optional field per member tool, keyed by the member name — the same
1651 name the member's `tool_use` blocks carry. Every member is an
1652 accepted key, and a member's defaults apply wherever its key is
1653 absent. Unknown keys are rejected: the field set is this toolset
1654 version's complete member set.
1655
1656 - `close_tab: optional BrowserCloseTabConfig or null`
1657
1658 `close_tab`'s config overrides.
1659
1660 - `defer_loading: optional boolean or null`
1661
1662 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
1663
1664 - `enabled: optional boolean or null`
1665
1666 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.
1667
1668 - `double_click: optional BrowserDoubleClickConfig or null`
1669
1670 `double_click`'s config overrides.
1671
1672 - `defer_loading: optional boolean or null`
1673
1674 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
1675
1676 - `enabled: optional boolean or null`
1677
1678 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.
1679
1680 - `file_upload: optional BrowserFileUploadConfig or null`
1681
1682 `file_upload`'s config overrides.
1683
1684 - `defer_loading: optional boolean or null`
1685
1686 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
1687
1688 - `enabled: optional boolean or null`
1689
1690 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.
1691
1692 - `find: optional BrowserFindConfig or null`
1693
1694 `find`'s config overrides.
1695
1696 - `defer_loading: optional boolean or null`
1697
1698 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
1699
1700 - `enabled: optional boolean or null`
1701
1702 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.
1703
1704 - `form_input: optional BrowserFormInputConfig or null`
1705
1706 `form_input`'s config overrides.
1707
1708 - `defer_loading: optional boolean or null`
1709
1710 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
1711
1712 - `enabled: optional boolean or null`
1713
1714 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.
1715
1716 - `get_page_text: optional BrowserGetPageTextConfig or null`
1717
1718 `get_page_text`'s config overrides.
1719
1720 - `defer_loading: optional boolean or null`
1721
1722 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
1723
1724 - `enabled: optional boolean or null`
1725
1726 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.
1727
1728 - `hold_key: optional BrowserHoldKeyConfig or null`
1729
1730 `hold_key`'s config overrides.
1731
1732 - `defer_loading: optional boolean or null`
1733
1734 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
1735
1736 - `enabled: optional boolean or null`
1737
1738 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.
1739
1740 - `hover: optional BrowserHoverConfig or null`
1741
1742 `hover`'s config overrides.
1743
1744 - `defer_loading: optional boolean or null`
1745
1746 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
1747
1748 - `enabled: optional boolean or null`
1749
1750 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.
1751
1752 - `javascript_exec: optional BrowserJavascriptExecConfig or null`
1753
1754 `javascript_exec`'s config overrides.
1755
1756 - `defer_loading: optional boolean or null`
1757
1758 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
1759
1760 - `enabled: optional boolean or null`
1761
1762 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.
1763
1764 - `key: optional BrowserKeyConfig or null`
1765
1766 `key`'s config overrides.
1767
1768 - `defer_loading: optional boolean or null`
1769
1770 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
1771
1772 - `enabled: optional boolean or null`
1773
1774 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.
1775
1776 - `left_click: optional BrowserLeftClickConfig or null`
1777
1778 `left_click`'s config overrides.
1779
1780 - `defer_loading: optional boolean or null`
1781
1782 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
1783
1784 - `enabled: optional boolean or null`
1785
1786 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.
1787
1788 - `left_click_drag: optional BrowserLeftClickDragConfig or null`
1789
1790 `left_click_drag`'s config overrides.
1791
1792 - `defer_loading: optional boolean or null`
1793
1794 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
1795
1796 - `enabled: optional boolean or null`
1797
1798 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.
1799
1800 - `left_mouse_down: optional BrowserLeftMouseDownConfig or null`
1801
1802 `left_mouse_down`'s config overrides.
1803
1804 - `defer_loading: optional boolean or null`
1805
1806 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
1807
1808 - `enabled: optional boolean or null`
1809
1810 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.
1811
1812 - `left_mouse_up: optional BrowserLeftMouseUpConfig or null`
1813
1814 `left_mouse_up`'s config overrides.
1815
1816 - `defer_loading: optional boolean or null`
1817
1818 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
1819
1820 - `enabled: optional boolean or null`
1821
1822 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.
1823
1824 - `list_tabs: optional BrowserListTabsConfig or null`
1825
1826 `list_tabs`'s config overrides.
1827
1828 - `defer_loading: optional boolean or null`
1829
1830 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
1831
1832 - `enabled: optional boolean or null`
1833
1834 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.
1835
1836 - `middle_click: optional BrowserMiddleClickConfig or null`
1837
1838 `middle_click`'s config overrides.
1839
1840 - `defer_loading: optional boolean or null`
1841
1842 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
1843
1844 - `enabled: optional boolean or null`
1845
1846 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.
1847
1848 - `mouse_move: optional BrowserMouseMoveConfig or null`
1849
1850 `mouse_move`'s config overrides.
1851
1852 - `defer_loading: optional boolean or null`
1853
1854 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
1855
1856 - `enabled: optional boolean or null`
1857
1858 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.
1859
1860 - `navigate: optional BrowserNavigateConfig or null`
1861
1862 `navigate`'s config overrides.
1863
1864 - `defer_loading: optional boolean or null`
1865
1866 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
1867
1868 - `enabled: optional boolean or null`
1869
1870 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.
1871
1872 - `new_tab: optional BrowserNewTabConfig or null`
1873
1874 `new_tab`'s config overrides.
1875
1876 - `defer_loading: optional boolean or null`
1877
1878 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
1879
1880 - `enabled: optional boolean or null`
1881
1882 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.
1883
1884 - `read_console: optional BrowserReadConsoleConfig or null`
1885
1886 `read_console`'s config overrides.
1887
1888 - `defer_loading: optional boolean or null`
1889
1890 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
1891
1892 - `enabled: optional boolean or null`
1893
1894 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.
1895
1896 - `read_network: optional BrowserReadNetworkConfig or null`
1897
1898 `read_network`'s config overrides.
1899
1900 - `defer_loading: optional boolean or null`
1901
1902 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
1903
1904 - `enabled: optional boolean or null`
1905
1906 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.
1907
1908 - `read_page: optional BrowserReadPageConfig or null`
1909
1910 `read_page`'s config overrides.
1911
1912 - `defer_loading: optional boolean or null`
1913
1914 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
1915
1916 - `enabled: optional boolean or null`
1917
1918 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.
1919
1920 - `right_click: optional BrowserRightClickConfig or null`
1921
1922 `right_click`'s config overrides.
1923
1924 - `defer_loading: optional boolean or null`
1925
1926 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
1927
1928 - `enabled: optional boolean or null`
1929
1930 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.
1931
1932 - `screenshot: optional BrowserScreenshotConfig or null`
1933
1934 `screenshot`'s config overrides.
1935
1936 - `defer_loading: optional boolean or null`
1937
1938 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
1939
1940 - `enabled: optional boolean or null`
1941
1942 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.
1943
1944 - `scroll: optional BrowserScrollConfig or null`
1945
1946 `scroll`'s config overrides.
1947
1948 - `defer_loading: optional boolean or null`
1949
1950 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
1951
1952 - `enabled: optional boolean or null`
1953
1954 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.
1955
1956 - `scroll_to: optional BrowserScrollToConfig or null`
1957
1958 `scroll_to`'s config overrides.
1959
1960 - `defer_loading: optional boolean or null`
1961
1962 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
1963
1964 - `enabled: optional boolean or null`
1965
1966 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.
1967
1968 - `switch_tab: optional BrowserSwitchTabConfig or null`
1969
1970 `switch_tab`'s config overrides.
1971
1972 - `defer_loading: optional boolean or null`
1973
1974 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
1975
1976 - `enabled: optional boolean or null`
1977
1978 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.
1979
1980 - `triple_click: optional BrowserTripleClickConfig or null`
1981
1982 `triple_click`'s config overrides.
1983
1984 - `defer_loading: optional boolean or null`
1985
1986 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
1987
1988 - `enabled: optional boolean or null`
1989
1990 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.
1991
1992 - `type: optional BrowserTypeConfig or null`
1993
1994 `type`'s config overrides.
1995
1996 - `defer_loading: optional boolean or null`
1997
1998 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
1999
2000 - `enabled: optional boolean or null`
2001
2002 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.
2003
2004 - `wait: optional BrowserWaitConfig or null`
2005
2006 `wait`'s config overrides.
2007
2008 - `defer_loading: optional boolean or null`
2009
2010 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2011
2012 - `enabled: optional boolean or null`
2013
2014 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.
2015
2016 - `zoom: optional BrowserZoomConfig or null`
2017
2018 `zoom`'s config overrides.
2019
2020 - `defer_loading: optional boolean or null`
2021
2022 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2023
2024 - `enabled: optional boolean or null`
2025
2026 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.
2027
14922028 - `MemoryTool20250818 object { name, type, allowed_callers, 4 more }`
14932029
14942030 - `name: "memory"`
from line 2062
15262062 - `strict: optional boolean`
15272063
15282064 When true, guarantees schema validation on tool names and inputs
2065
2066 - `ComputerToolset20260801 object { type, allowed_callers, cache_control, configs }`
2067
2068 The computer toolset: a single `tools[]` entry (carrying no
2069 `name`) that declares the computer tool family. The model is
2070 served the family's tool with any members disabled via `configs`
2071 removed from its schema. Every member is enabled by default, zoom
2072 included. The single-tool options `display_number` and
2073 `enable_zoom` are not fields of a toolset entry — it carries only
2074 `type`, `configs`, and `cache_control`; zoom is controlled
2075 via `configs.zoom.enabled`.
2076
2077 - `type: "computer_toolset_20260801"`
2078
2079 - `"computer_toolset_20260801"`
2080
2081 - `allowed_callers: optional array of "direct" or "code_execution_20250825" or "code_execution_20260120" or "code_execution_20260521"`
2082
2083 - `"direct"`
2084
2085 - `"code_execution_20250825"`
2086
2087 - `"code_execution_20260120"`
2088
2089 - `"code_execution_20260521"`
2090
2091 - `cache_control: optional CacheControlEphemeral or null`
2092
2093 Create a cache control breakpoint at this content block.
2094
2095 - `configs: optional ComputerToolsetConfigs or null`
2096
2097 Per-member configuration for `computer_toolset_20260801`: one
2098 optional field per member tool, keyed by the member name — the same
2099 name the member's `tool_use` blocks carry. Every member is an
2100 accepted key, and a member's defaults apply wherever its key is
2101 absent. Unknown keys are rejected: the field set is this toolset
2102 version's complete member set.
2103
2104 - `cursor_position: optional ComputerCursorPositionConfig or null`
2105
2106 `cursor_position`'s config overrides.
2107
2108 - `defer_loading: optional boolean or null`
2109
2110 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2111
2112 - `enabled: optional boolean or null`
2113
2114 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.
2115
2116 - `double_click: optional ComputerDoubleClickConfig or null`
2117
2118 `double_click`'s config overrides.
2119
2120 - `defer_loading: optional boolean or null`
2121
2122 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2123
2124 - `enabled: optional boolean or null`
2125
2126 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.
2127
2128 - `hold_key: optional ComputerHoldKeyConfig or null`
2129
2130 `hold_key`'s config overrides.
2131
2132 - `defer_loading: optional boolean or null`
2133
2134 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2135
2136 - `enabled: optional boolean or null`
2137
2138 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.
2139
2140 - `key: optional ComputerKeyConfig or null`
2141
2142 `key`'s config overrides.
2143
2144 - `defer_loading: optional boolean or null`
2145
2146 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2147
2148 - `enabled: optional boolean or null`
2149
2150 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.
2151
2152 - `left_click: optional ComputerLeftClickConfig or null`
2153
2154 `left_click`'s config overrides.
2155
2156 - `defer_loading: optional boolean or null`
2157
2158 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2159
2160 - `enabled: optional boolean or null`
2161
2162 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.
2163
2164 - `left_click_drag: optional ComputerLeftClickDragConfig or null`
2165
2166 `left_click_drag`'s config overrides.
2167
2168 - `defer_loading: optional boolean or null`
2169
2170 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2171
2172 - `enabled: optional boolean or null`
2173
2174 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.
2175
2176 - `left_mouse_down: optional ComputerLeftMouseDownConfig or null`
2177
2178 `left_mouse_down`'s config overrides.
2179
2180 - `defer_loading: optional boolean or null`
2181
2182 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2183
2184 - `enabled: optional boolean or null`
2185
2186 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.
2187
2188 - `left_mouse_up: optional ComputerLeftMouseUpConfig or null`
2189
2190 `left_mouse_up`'s config overrides.
2191
2192 - `defer_loading: optional boolean or null`
2193
2194 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2195
2196 - `enabled: optional boolean or null`
2197
2198 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.
2199
2200 - `middle_click: optional ComputerMiddleClickConfig or null`
2201
2202 `middle_click`'s config overrides.
2203
2204 - `defer_loading: optional boolean or null`
2205
2206 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2207
2208 - `enabled: optional boolean or null`
2209
2210 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.
2211
2212 - `mouse_move: optional ComputerMouseMoveConfig or null`
2213
2214 `mouse_move`'s config overrides.
2215
2216 - `defer_loading: optional boolean or null`
2217
2218 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2219
2220 - `enabled: optional boolean or null`
2221
2222 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.
2223
2224 - `right_click: optional ComputerRightClickConfig or null`
2225
2226 `right_click`'s config overrides.
2227
2228 - `defer_loading: optional boolean or null`
2229
2230 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2231
2232 - `enabled: optional boolean or null`
2233
2234 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.
2235
2236 - `screenshot: optional ComputerScreenshotConfig or null`
2237
2238 `screenshot`'s config overrides.
2239
2240 - `defer_loading: optional boolean or null`
2241
2242 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2243
2244 - `enabled: optional boolean or null`
2245
2246 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.
2247
2248 - `scroll: optional ComputerScrollConfig or null`
2249
2250 `scroll`'s config overrides.
2251
2252 - `defer_loading: optional boolean or null`
2253
2254 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2255
2256 - `enabled: optional boolean or null`
2257
2258 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.
2259
2260 - `triple_click: optional ComputerTripleClickConfig or null`
2261
2262 `triple_click`'s config overrides.
2263
2264 - `defer_loading: optional boolean or null`
2265
2266 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2267
2268 - `enabled: optional boolean or null`
2269
2270 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.
2271
2272 - `type: optional ComputerTypeConfig or null`
2273
2274 `type`'s config overrides.
2275
2276 - `defer_loading: optional boolean or null`
2277
2278 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2279
2280 - `enabled: optional boolean or null`
2281
2282 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.
2283
2284 - `wait: optional ComputerWaitConfig or null`
2285
2286 `wait`'s config overrides.
2287
2288 - `defer_loading: optional boolean or null`
2289
2290 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2291
2292 - `enabled: optional boolean or null`
2293
2294 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.
2295
2296 - `zoom: optional ComputerZoomConfig or null`
2297
2298 `zoom`'s config overrides.
2299
2300 - `defer_loading: optional boolean or null`
2301
2302 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2303
2304 - `enabled: optional boolean or null`
2305
2306 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.
15292307
15302308 - `ToolTextEditor20250124 object { name, type, allowed_callers, 4 more }`
15312309
from line 2947
21692947 "role": "user"
21702948 }
21712949 ],
2172 "model": "claude-opus-4-6",
2950 "model": "claude-opus-5",
21732951 "system": [
21742952 {
21752953 "text": "Today'\''s date is 2024-06-01.",
21762954
No line in this hunk matches that.