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 43 more`
24 - `"message-batches-2024-09-24" or "prompt-caching-2024-07-31" or "computer-use-2024-10-22" or 45 more`
2525
2626 - `"message-batches-2024-09-24"`
2727
from line 114
114114 - `"mid-conversation-system-clear-at-2026-08-21"`
115115
116116 - `"compact-2026-09-04"`
117
118 - `"inline-tools-2026-09-15"`
119
120 - `"mcp-client-2026-09-15"`
117121
118122- `"anthropic-user-profile-id": optional string`
119123
from line 1285
12811285
12821286 The block's signature as returned, to be sent back verbatim
12831287
1288 - `tool_changes: optional array of BetaRequestToolAdditionBlock or BetaRequestToolRemovalBlock or null`
1289
1290 The tool changes of the compacted range, as the server returned them on this block: the `tool_addition` and `tool_removal` entries that take the request's `tools` to the tool set in effect at the end of the range. Send them back unchanged with the block.
1291
1292 - `BetaRequestToolAdditionBlock object`
1293
1294 Mid-conversation directive to make a tool available.
1295
1296 `tool` is a reference to a tool (or MCP toolset) declared in the
1297 request's `tools`. Under the `inline-tools-2026-09-15` beta it may
1298 instead be a reference to a tool defined earlier in `messages`, or a
1299 `tool_definition` object that carries an inline tool definition in
1300 `definition` (the same object a `tools` entry holds). An `mcp_toolset`
1301 definition also requires the `mcp-client-2026-09-15` beta. The tool is
1302 offered to the model from this point in the conversation onward.
1303
1304 - `type: "tool_addition"`
1305
1306 - `tool: BetaToolChangeToolReference or BetaToolChangeMCPToolReference or BetaToolChangeMCPToolsetReference or BetaToolChangeToolDefinitionParam`
1307
1308 - `BetaToolChangeToolReference object`
1309
1310 Reference to a single tool, by the name the model uses to call it: a
1311 tool declared in `tools` or defined by an earlier `tool_addition`
1312 block. Does not accept the composed `{server}_{name}` form the server
1313 assigns to MCP-resolved tools; use `mcp_tool_reference` or
1314 `mcp_toolset_reference` for those.
1315
1316 - `type: "tool_reference"`
1317
1318 - `name: string`
1319
1320 pattern: ^[a-zA-Z0-9_-]{1,128}$
1321
1322 - `BetaToolChangeMCPToolReference object`
1323
1324 Reference to a single MCP tool by its server and remote name; the
1325 same `server_name`/`name` pair `mcp_tool_use` carries.
1326
1327 - `type: "mcp_tool_reference"`
1328
1329 - `name: string`
1330
1331 - `server_name: string`
1332
1333 - `BetaToolChangeMCPToolsetReference object`
1334
1335 Reference to every tool in the named MCP server's toolset.
1336
1337 - `type: "mcp_toolset_reference"`
1338
1339 - `server_name: string`
1340
1341 - `BetaToolChangeToolDefinitionParam object`
1342
1343 A tool defined by value: `definition` is a `tools` entry (any kind
1344 `tools` accepts, an MCP toolset included). An `mcp_toolset` given here
1345 also requires the `mcp-client-2026-09-15` beta.
1346
1347 - `type: "tool_definition"`
1348
1349 - `definition: BetaToolUnion`
1350
1351 - `BetaTool object`
1352
1353 - `type: optional "custom" or null`
1354
1355 - `input_schema: object`
1356
1357 [JSON schema](https://json-schema.org/draft/2020-12) for this tool's input.
1358
1359 This defines the shape of the `input` that your tool accepts and that the model will produce.
1360
1361 - `type: "object"`
1362
1363 - `properties: optional map[unknown] or null`
1364
1365 - `required: optional array of string or null`
1366
1367 - `name: string`
1368
1369 Name of the tool.
1370
1371 This is how the tool will be called by the model and in `tool_use` blocks.
1372
1373 maxLength: 128, minLength: 1, pattern: ^[a-zA-Z0-9_-]{1,128}$
1374
1375 - `allowed_callers: optional array of "direct" or "code_execution_20250825" or "code_execution_20260120" or "code_execution_20260521"`
1376
1377 - `"direct"`
1378
1379 - `"code_execution_20250825"`
1380
1381 - `"code_execution_20260120"`
1382
1383 - `"code_execution_20260521"`
1384
1385 - `cache_control: optional BetaCacheControlEphemeral or null`
1386
1387 Create a cache control breakpoint at this content block.
1388
1389 - `defer_loading: optional boolean`
1390
1391 If true, tool will not be included in initial system prompt. Only loaded when returned via tool_reference from tool search.
1392
1393 - `description: optional string`
1394
1395 Description of what this tool does.
1396
1397 Tool descriptions should be as detailed as possible. The more information that the model has about what the tool is and how to use it, the better it will perform. You can use natural language descriptions to reinforce important aspects of the tool input JSON schema.
1398
1399 - `eager_input_streaming: optional boolean or null`
1400
1401 Enable eager input streaming for this tool. When true, tool input parameters will be streamed incrementally as they are generated, and types will be inferred on-the-fly rather than buffering the full JSON output. When false, streaming is disabled for this tool even if the fine-grained-tool-streaming beta is active. When null (default), uses the default behavior based on beta headers.
1402
1403 - `input_examples: optional array of map[unknown]`
1404
1405 - `strict: optional boolean`
1406
1407 When true, guarantees schema validation on tool names and inputs
1408
1409 - `BetaToolBash20241022 object`
1410
1411 - `type: "bash_20241022"`
1412
1413 - `name: "bash"`
1414
1415 Name of the tool.
1416
1417 This is how the tool will be called by the model and in `tool_use` blocks.
1418
1419 - `allowed_callers: optional array of "direct" or "code_execution_20250825" or "code_execution_20260120" or "code_execution_20260521"`
1420
1421 - `"direct"`
1422
1423 - `"code_execution_20250825"`
1424
1425 - `"code_execution_20260120"`
1426
1427 - `"code_execution_20260521"`
1428
1429 - `cache_control: optional BetaCacheControlEphemeral or null`
1430
1431 Create a cache control breakpoint at this content block.
1432
1433 - `defer_loading: optional boolean`
1434
1435 If true, tool will not be included in initial system prompt. Only loaded when returned via tool_reference from tool search.
1436
1437 - `input_examples: optional array of map[unknown]`
1438
1439 - `strict: optional boolean`
1440
1441 When true, guarantees schema validation on tool names and inputs
1442
1443 - `BetaToolBash20250124 object`
1444
1445 - `type: "bash_20250124"`
1446
1447 - `name: "bash"`
1448
1449 Name of the tool.
1450
1451 This is how the tool will be called by the model and in `tool_use` blocks.
1452
1453 - `allowed_callers: optional array of "direct" or "code_execution_20250825" or "code_execution_20260120" or "code_execution_20260521"`
1454
1455 - `"direct"`
1456
1457 - `"code_execution_20250825"`
1458
1459 - `"code_execution_20260120"`
1460
1461 - `"code_execution_20260521"`
1462
1463 - `cache_control: optional BetaCacheControlEphemeral or null`
1464
1465 Create a cache control breakpoint at this content block.
1466
1467 - `defer_loading: optional boolean`
1468
1469 If true, tool will not be included in initial system prompt. Only loaded when returned via tool_reference from tool search.
1470
1471 - `input_examples: optional array of map[unknown]`
1472
1473 - `strict: optional boolean`
1474
1475 When true, guarantees schema validation on tool names and inputs
1476
1477 - `BetaCodeExecutionTool20250522 object`
1478
1479 - `type: "code_execution_20250522"`
1480
1481 - `name: "code_execution"`
1482
1483 Name of the tool.
1484
1485 This is how the tool will be called by the model and in `tool_use` blocks.
1486
1487 - `allowed_callers: optional array of "direct" or "code_execution_20250825" or "code_execution_20260120" or "code_execution_20260521"`
1488
1489 - `"direct"`
1490
1491 - `"code_execution_20250825"`
1492
1493 - `"code_execution_20260120"`
1494
1495 - `"code_execution_20260521"`
1496
1497 - `cache_control: optional BetaCacheControlEphemeral or null`
1498
1499 Create a cache control breakpoint at this content block.
1500
1501 - `defer_loading: optional boolean`
1502
1503 If true, tool will not be included in initial system prompt. Only loaded when returned via tool_reference from tool search.
1504
1505 - `strict: optional boolean`
1506
1507 When true, guarantees schema validation on tool names and inputs
1508
1509 - `BetaCodeExecutionTool20250825 object`
1510
1511 - `type: "code_execution_20250825"`
1512
1513 - `name: "code_execution"`
1514
1515 Name of the tool.
1516
1517 This is how the tool will be called by the model and in `tool_use` blocks.
1518
1519 - `allowed_callers: optional array of "direct" or "code_execution_20250825" or "code_execution_20260120" or "code_execution_20260521"`
1520
1521 - `"direct"`
1522
1523 - `"code_execution_20250825"`
1524
1525 - `"code_execution_20260120"`
1526
1527 - `"code_execution_20260521"`
1528
1529 - `cache_control: optional BetaCacheControlEphemeral or null`
1530
1531 Create a cache control breakpoint at this content block.
1532
1533 - `defer_loading: optional boolean`
1534
1535 If true, tool will not be included in initial system prompt. Only loaded when returned via tool_reference from tool search.
1536
1537 - `strict: optional boolean`
1538
1539 When true, guarantees schema validation on tool names and inputs
1540
1541 - `BetaCodeExecutionTool20260120 object`
1542
1543 Code execution tool with REPL state persistence (daemon mode + gVisor checkpoint).
1544
1545 - `type: "code_execution_20260120"`
1546
1547 - `name: "code_execution"`
1548
1549 Name of the tool.
1550
1551 This is how the tool will be called by the model and in `tool_use` blocks.
1552
1553 - `allowed_callers: optional array of "direct" or "code_execution_20250825" or "code_execution_20260120" or "code_execution_20260521"`
1554
1555 - `"direct"`
1556
1557 - `"code_execution_20250825"`
1558
1559 - `"code_execution_20260120"`
1560
1561 - `"code_execution_20260521"`
1562
1563 - `cache_control: optional BetaCacheControlEphemeral or null`
1564
1565 Create a cache control breakpoint at this content block.
1566
1567 - `defer_loading: optional boolean`
1568
1569 If true, tool will not be included in initial system prompt. Only loaded when returned via tool_reference from tool search.
1570
1571 - `strict: optional boolean`
1572
1573 When true, guarantees schema validation on tool names and inputs
1574
1575 - `BetaCodeExecutionTool20260521 object`
1576
1577 Code execution tool with REPL state persistence.
1578
1579 - `type: "code_execution_20260521"`
1580
1581 - `name: "code_execution"`
1582
1583 Name of the tool.
1584
1585 This is how the tool will be called by the model and in `tool_use` blocks.
1586
1587 - `allowed_callers: optional array of "direct" or "code_execution_20250825" or "code_execution_20260120" or "code_execution_20260521"`
1588
1589 - `"direct"`
1590
1591 - `"code_execution_20250825"`
1592
1593 - `"code_execution_20260120"`
1594
1595 - `"code_execution_20260521"`
1596
1597 - `cache_control: optional BetaCacheControlEphemeral or null`
1598
1599 Create a cache control breakpoint at this content block.
1600
1601 - `defer_loading: optional boolean`
1602
1603 If true, tool will not be included in initial system prompt. Only loaded when returned via tool_reference from tool search.
1604
1605 - `strict: optional boolean`
1606
1607 When true, guarantees schema validation on tool names and inputs
1608
1609 - `BetaBrowserToolset20260801 object`
1610
1611 The browser toolset: a single `tools[]` entry (carrying no
1612 `name`) that declares the browser tool family. The model is served
1613 the family's tool with any members disabled via `configs` removed
1614 from its schema.
1615
1616 - `type: "browser_toolset_20260801"`
1617
1618 - `cache_control: optional BetaCacheControlEphemeral or null`
1619
1620 Create a cache control breakpoint at this content block.
1621
1622 - `configs: optional BetaBrowserToolsetConfigs or null`
1623
1624 Per-member configuration for `browser_toolset_20260801`: one
1625 optional field per member tool, keyed by the member name — the same
1626 name the member's `tool_use` blocks carry. Every member is an
1627 accepted key, and a member's defaults apply wherever its key is
1628 absent. Unknown keys are rejected: the field set is this toolset
1629 version's complete member set.
1630
1631 - `type: optional BetaBrowserTypeConfig or null`
1632
1633 `type`'s config overrides.
1634
1635 - `defer_loading: optional boolean or null`
1636
1637 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
1638
1639 - `enabled: optional boolean or null`
1640
1641 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.
1642
1643 - `close_tab: optional BetaBrowserCloseTabConfig or null`
1644
1645 `close_tab`'s config overrides.
1646
1647 - `defer_loading: optional boolean or null`
1648
1649 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
1650
1651 - `enabled: optional boolean or null`
1652
1653 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.
1654
1655 - `double_click: optional BetaBrowserDoubleClickConfig or null`
1656
1657 `double_click`'s config overrides.
1658
1659 - `defer_loading: optional boolean or null`
1660
1661 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
1662
1663 - `enabled: optional boolean or null`
1664
1665 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.
1666
1667 - `file_upload: optional BetaBrowserFileUploadConfig or null`
1668
1669 `file_upload`'s config overrides.
1670
1671 - `defer_loading: optional boolean or null`
1672
1673 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
1674
1675 - `enabled: optional boolean or null`
1676
1677 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.
1678
1679 - `find: optional BetaBrowserFindConfig or null`
1680
1681 `find`'s config overrides.
1682
1683 - `defer_loading: optional boolean or null`
1684
1685 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
1686
1687 - `enabled: optional boolean or null`
1688
1689 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.
1690
1691 - `form_input: optional BetaBrowserFormInputConfig or null`
1692
1693 `form_input`'s config overrides.
1694
1695 - `defer_loading: optional boolean or null`
1696
1697 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
1698
1699 - `enabled: optional boolean or null`
1700
1701 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.
1702
1703 - `get_page_text: optional BetaBrowserGetPageTextConfig or null`
1704
1705 `get_page_text`'s config overrides.
1706
1707 - `defer_loading: optional boolean or null`
1708
1709 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
1710
1711 - `enabled: optional boolean or null`
1712
1713 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.
1714
1715 - `hold_key: optional BetaBrowserHoldKeyConfig or null`
1716
1717 `hold_key`'s config overrides.
1718
1719 - `defer_loading: optional boolean or null`
1720
1721 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
1722
1723 - `enabled: optional boolean or null`
1724
1725 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.
1726
1727 - `hover: optional BetaBrowserHoverConfig or null`
1728
1729 `hover`'s config overrides.
1730
1731 - `defer_loading: optional boolean or null`
1732
1733 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
1734
1735 - `enabled: optional boolean or null`
1736
1737 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.
1738
1739 - `javascript_exec: optional BetaBrowserJavascriptExecConfig or null`
1740
1741 `javascript_exec`'s config overrides.
1742
1743 - `defer_loading: optional boolean or null`
1744
1745 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
1746
1747 - `enabled: optional boolean or null`
1748
1749 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.
1750
1751 - `key: optional BetaBrowserKeyConfig or null`
1752
1753 `key`'s config overrides.
1754
1755 - `defer_loading: optional boolean or null`
1756
1757 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
1758
1759 - `enabled: optional boolean or null`
1760
1761 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.
1762
1763 - `left_click: optional BetaBrowserLeftClickConfig or null`
1764
1765 `left_click`'s config overrides.
1766
1767 - `defer_loading: optional boolean or null`
1768
1769 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
1770
1771 - `enabled: optional boolean or null`
1772
1773 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.
1774
1775 - `left_click_drag: optional BetaBrowserLeftClickDragConfig or null`
1776
1777 `left_click_drag`'s config overrides.
1778
1779 - `defer_loading: optional boolean or null`
1780
1781 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
1782
1783 - `enabled: optional boolean or null`
1784
1785 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.
1786
1787 - `left_mouse_down: optional BetaBrowserLeftMouseDownConfig or null`
1788
1789 `left_mouse_down`'s config overrides.
1790
1791 - `defer_loading: optional boolean or null`
1792
1793 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
1794
1795 - `enabled: optional boolean or null`
1796
1797 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.
1798
1799 - `left_mouse_up: optional BetaBrowserLeftMouseUpConfig or null`
1800
1801 `left_mouse_up`'s config overrides.
1802
1803 - `defer_loading: optional boolean or null`
1804
1805 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
1806
1807 - `enabled: optional boolean or null`
1808
1809 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.
1810
1811 - `list_tabs: optional BetaBrowserListTabsConfig or null`
1812
1813 `list_tabs`'s config overrides.
1814
1815 - `defer_loading: optional boolean or null`
1816
1817 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
1818
1819 - `enabled: optional boolean or null`
1820
1821 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.
1822
1823 - `middle_click: optional BetaBrowserMiddleClickConfig or null`
1824
1825 `middle_click`'s config overrides.
1826
1827 - `defer_loading: optional boolean or null`
1828
1829 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
1830
1831 - `enabled: optional boolean or null`
1832
1833 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.
1834
1835 - `mouse_move: optional BetaBrowserMouseMoveConfig or null`
1836
1837 `mouse_move`'s config overrides.
1838
1839 - `defer_loading: optional boolean or null`
1840
1841 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
1842
1843 - `enabled: optional boolean or null`
1844
1845 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.
1846
1847 - `navigate: optional BetaBrowserNavigateConfig or null`
1848
1849 `navigate`'s config overrides.
1850
1851 - `defer_loading: optional boolean or null`
1852
1853 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
1854
1855 - `enabled: optional boolean or null`
1856
1857 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.
1858
1859 - `new_tab: optional BetaBrowserNewTabConfig or null`
1860
1861 `new_tab`'s config overrides.
1862
1863 - `defer_loading: optional boolean or null`
1864
1865 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
1866
1867 - `enabled: optional boolean or null`
1868
1869 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.
1870
1871 - `read_console: optional BetaBrowserReadConsoleConfig or null`
1872
1873 `read_console`'s config overrides.
1874
1875 - `defer_loading: optional boolean or null`
1876
1877 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
1878
1879 - `enabled: optional boolean or null`
1880
1881 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.
1882
1883 - `read_network: optional BetaBrowserReadNetworkConfig or null`
1884
1885 `read_network`'s config overrides.
1886
1887 - `defer_loading: optional boolean or null`
1888
1889 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
1890
1891 - `enabled: optional boolean or null`
1892
1893 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.
1894
1895 - `read_page: optional BetaBrowserReadPageConfig or null`
1896
1897 `read_page`'s config overrides.
1898
1899 - `defer_loading: optional boolean or null`
1900
1901 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
1902
1903 - `enabled: optional boolean or null`
1904
1905 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.
1906
1907 - `right_click: optional BetaBrowserRightClickConfig or null`
1908
1909 `right_click`'s config overrides.
1910
1911 - `defer_loading: optional boolean or null`
1912
1913 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
1914
1915 - `enabled: optional boolean or null`
1916
1917 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.
1918
1919 - `screenshot: optional BetaBrowserScreenshotConfig or null`
1920
1921 `screenshot`'s config overrides.
1922
1923 - `defer_loading: optional boolean or null`
1924
1925 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
1926
1927 - `enabled: optional boolean or null`
1928
1929 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.
1930
1931 - `scroll: optional BetaBrowserScrollConfig or null`
1932
1933 `scroll`'s config overrides.
1934
1935 - `defer_loading: optional boolean or null`
1936
1937 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
1938
1939 - `enabled: optional boolean or null`
1940
1941 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.
1942
1943 - `scroll_to: optional BetaBrowserScrollToConfig or null`
1944
1945 `scroll_to`'s config overrides.
1946
1947 - `defer_loading: optional boolean or null`
1948
1949 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
1950
1951 - `enabled: optional boolean or null`
1952
1953 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.
1954
1955 - `switch_tab: optional BetaBrowserSwitchTabConfig or null`
1956
1957 `switch_tab`'s config overrides.
1958
1959 - `defer_loading: optional boolean or null`
1960
1961 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
1962
1963 - `enabled: optional boolean or null`
1964
1965 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.
1966
1967 - `triple_click: optional BetaBrowserTripleClickConfig or null`
1968
1969 `triple_click`'s config overrides.
1970
1971 - `defer_loading: optional boolean or null`
1972
1973 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
1974
1975 - `enabled: optional boolean or null`
1976
1977 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.
1978
1979 - `wait: optional BetaBrowserWaitConfig or null`
1980
1981 `wait`'s config overrides.
1982
1983 - `defer_loading: optional boolean or null`
1984
1985 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
1986
1987 - `enabled: optional boolean or null`
1988
1989 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.
1990
1991 - `zoom: optional BetaBrowserZoomConfig or null`
1992
1993 `zoom`'s config overrides.
1994
1995 - `defer_loading: optional boolean or null`
1996
1997 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
1998
1999 - `enabled: optional boolean or null`
2000
2001 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.
2002
2003 - `BetaToolComputerUse20241022 object`
2004
2005 - `type: "computer_20241022"`
2006
2007 - `display_height_px: number`
2008
2009 The height of the display in pixels.
2010
2011 minimum: 1
2012
2013 - `display_width_px: number`
2014
2015 The width of the display in pixels.
2016
2017 minimum: 1
2018
2019 - `name: "computer"`
2020
2021 Name of the tool.
2022
2023 This is how the tool will be called by the model and in `tool_use` blocks.
2024
2025 - `allowed_callers: optional array of "direct" or "code_execution_20250825" or "code_execution_20260120" or "code_execution_20260521"`
2026
2027 - `"direct"`
2028
2029 - `"code_execution_20250825"`
2030
2031 - `"code_execution_20260120"`
2032
2033 - `"code_execution_20260521"`
2034
2035 - `cache_control: optional BetaCacheControlEphemeral or null`
2036
2037 Create a cache control breakpoint at this content block.
2038
2039 - `defer_loading: optional boolean`
2040
2041 If true, tool will not be included in initial system prompt. Only loaded when returned via tool_reference from tool search.
2042
2043 - `display_number: optional number or null`
2044
2045 The X11 display number (e.g. 0, 1) for the display.
2046
2047 minimum: 0
2048
2049 - `input_examples: optional array of map[unknown]`
2050
2051 - `strict: optional boolean`
2052
2053 When true, guarantees schema validation on tool names and inputs
2054
2055 - `BetaMemoryTool20250818 object`
2056
2057 - `type: "memory_20250818"`
2058
2059 - `name: "memory"`
2060
2061 Name of the tool.
2062
2063 This is how the tool will be called by the model and in `tool_use` blocks.
2064
2065 - `allowed_callers: optional array of "direct" or "code_execution_20250825" or "code_execution_20260120" or "code_execution_20260521"`
2066
2067 - `"direct"`
2068
2069 - `"code_execution_20250825"`
2070
2071 - `"code_execution_20260120"`
2072
2073 - `"code_execution_20260521"`
2074
2075 - `cache_control: optional BetaCacheControlEphemeral or null`
2076
2077 Create a cache control breakpoint at this content block.
2078
2079 - `defer_loading: optional boolean`
2080
2081 If true, tool will not be included in initial system prompt. Only loaded when returned via tool_reference from tool search.
2082
2083 - `input_examples: optional array of map[unknown]`
2084
2085 - `strict: optional boolean`
2086
2087 When true, guarantees schema validation on tool names and inputs
2088
2089 - `BetaToolComputerUse20250124 object`
2090
2091 - `type: "computer_20250124"`
2092
2093 - `display_height_px: number`
2094
2095 The height of the display in pixels.
2096
2097 minimum: 1
2098
2099 - `display_width_px: number`
2100
2101 The width of the display in pixels.
2102
2103 minimum: 1
2104
2105 - `name: "computer"`
2106
2107 Name of the tool.
2108
2109 This is how the tool will be called by the model and in `tool_use` blocks.
2110
2111 - `allowed_callers: optional array of "direct" or "code_execution_20250825" or "code_execution_20260120" or "code_execution_20260521"`
2112
2113 - `"direct"`
2114
2115 - `"code_execution_20250825"`
2116
2117 - `"code_execution_20260120"`
2118
2119 - `"code_execution_20260521"`
2120
2121 - `cache_control: optional BetaCacheControlEphemeral or null`
2122
2123 Create a cache control breakpoint at this content block.
2124
2125 - `defer_loading: optional boolean`
2126
2127 If true, tool will not be included in initial system prompt. Only loaded when returned via tool_reference from tool search.
2128
2129 - `display_number: optional number or null`
2130
2131 The X11 display number (e.g. 0, 1) for the display.
2132
2133 minimum: 0
2134
2135 - `input_examples: optional array of map[unknown]`
2136
2137 - `strict: optional boolean`
2138
2139 When true, guarantees schema validation on tool names and inputs
2140
2141 - `BetaToolTextEditor20241022 object`
2142
2143 - `type: "text_editor_20241022"`
2144
2145 - `name: "str_replace_editor"`
2146
2147 Name of the tool.
2148
2149 This is how the tool will be called by the model and in `tool_use` blocks.
2150
2151 - `allowed_callers: optional array of "direct" or "code_execution_20250825" or "code_execution_20260120" or "code_execution_20260521"`
2152
2153 - `"direct"`
2154
2155 - `"code_execution_20250825"`
2156
2157 - `"code_execution_20260120"`
2158
2159 - `"code_execution_20260521"`
2160
2161 - `cache_control: optional BetaCacheControlEphemeral or null`
2162
2163 Create a cache control breakpoint at this content block.
2164
2165 - `defer_loading: optional boolean`
2166
2167 If true, tool will not be included in initial system prompt. Only loaded when returned via tool_reference from tool search.
2168
2169 - `input_examples: optional array of map[unknown]`
2170
2171 - `strict: optional boolean`
2172
2173 When true, guarantees schema validation on tool names and inputs
2174
2175 - `BetaToolComputerUse20251124 object`
2176
2177 - `type: "computer_20251124"`
2178
2179 - `display_height_px: number`
2180
2181 The height of the display in pixels.
2182
2183 minimum: 1
2184
2185 - `display_width_px: number`
2186
2187 The width of the display in pixels.
2188
2189 minimum: 1
2190
2191 - `name: "computer"`
2192
2193 Name of the tool.
2194
2195 This is how the tool will be called by the model and in `tool_use` blocks.
2196
2197 - `allowed_callers: optional array of "direct" or "code_execution_20250825" or "code_execution_20260120" or "code_execution_20260521"`
2198
2199 - `"direct"`
2200
2201 - `"code_execution_20250825"`
2202
2203 - `"code_execution_20260120"`
2204
2205 - `"code_execution_20260521"`
2206
2207 - `cache_control: optional BetaCacheControlEphemeral or null`
2208
2209 Create a cache control breakpoint at this content block.
2210
2211 - `defer_loading: optional boolean`
2212
2213 If true, tool will not be included in initial system prompt. Only loaded when returned via tool_reference from tool search.
2214
2215 - `display_number: optional number or null`
2216
2217 The X11 display number (e.g. 0, 1) for the display.
2218
2219 minimum: 0
2220
2221 - `enable_zoom: optional boolean`
2222
2223 Whether to enable an action to take a zoomed-in screenshot of the screen.
2224
2225 - `input_examples: optional array of map[unknown]`
2226
2227 - `strict: optional boolean`
2228
2229 When true, guarantees schema validation on tool names and inputs
2230
2231 - `BetaComputerToolset20260801 object`
2232
2233 The computer toolset: a single `tools[]` entry (carrying no
2234 `name`) that declares the computer tool family. The model is
2235 served the family's tool with any members disabled via `configs`
2236 removed from its schema. Every member is enabled by default, zoom
2237 included. The single-tool options `display_number` and
2238 `enable_zoom` are not fields of a toolset entry — it carries only
2239 `type`, `configs`, and `cache_control`; zoom is controlled
2240 via `configs.zoom.enabled`.
2241
2242 - `type: "computer_toolset_20260801"`
2243
2244 - `cache_control: optional BetaCacheControlEphemeral or null`
2245
2246 Create a cache control breakpoint at this content block.
2247
2248 - `configs: optional BetaComputerToolsetConfigs or null`
2249
2250 Per-member configuration for `computer_toolset_20260801`: one
2251 optional field per member tool, keyed by the member name — the same
2252 name the member's `tool_use` blocks carry. Every member is an
2253 accepted key, and a member's defaults apply wherever its key is
2254 absent. Unknown keys are rejected: the field set is this toolset
2255 version's complete member set.
2256
2257 - `type: optional BetaComputerTypeConfig or null`
2258
2259 `type`'s config overrides.
2260
2261 - `defer_loading: optional boolean or null`
2262
2263 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2264
2265 - `enabled: optional boolean or null`
2266
2267 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.
2268
2269 - `cursor_position: optional BetaComputerCursorPositionConfig or null`
2270
2271 `cursor_position`'s config overrides.
2272
2273 - `defer_loading: optional boolean or null`
2274
2275 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2276
2277 - `enabled: optional boolean or null`
2278
2279 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.
2280
2281 - `double_click: optional BetaComputerDoubleClickConfig or null`
2282
2283 `double_click`'s config overrides.
2284
2285 - `defer_loading: optional boolean or null`
2286
2287 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2288
2289 - `enabled: optional boolean or null`
2290
2291 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.
2292
2293 - `hold_key: optional BetaComputerHoldKeyConfig or null`
2294
2295 `hold_key`'s config overrides.
2296
2297 - `defer_loading: optional boolean or null`
2298
2299 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2300
2301 - `enabled: optional boolean or null`
2302
2303 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.
2304
2305 - `key: optional BetaComputerKeyConfig or null`
2306
2307 `key`'s config overrides.
2308
2309 - `defer_loading: optional boolean or null`
2310
2311 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2312
2313 - `enabled: optional boolean or null`
2314
2315 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.
2316
2317 - `left_click: optional BetaComputerLeftClickConfig or null`
2318
2319 `left_click`'s config overrides.
2320
2321 - `defer_loading: optional boolean or null`
2322
2323 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2324
2325 - `enabled: optional boolean or null`
2326
2327 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.
2328
2329 - `left_click_drag: optional BetaComputerLeftClickDragConfig or null`
2330
2331 `left_click_drag`'s config overrides.
2332
2333 - `defer_loading: optional boolean or null`
2334
2335 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2336
2337 - `enabled: optional boolean or null`
2338
2339 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.
2340
2341 - `left_mouse_down: optional BetaComputerLeftMouseDownConfig or null`
2342
2343 `left_mouse_down`'s config overrides.
2344
2345 - `defer_loading: optional boolean or null`
2346
2347 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2348
2349 - `enabled: optional boolean or null`
2350
2351 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.
2352
2353 - `left_mouse_up: optional BetaComputerLeftMouseUpConfig or null`
2354
2355 `left_mouse_up`'s config overrides.
2356
2357 - `defer_loading: optional boolean or null`
2358
2359 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2360
2361 - `enabled: optional boolean or null`
2362
2363 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.
2364
2365 - `middle_click: optional BetaComputerMiddleClickConfig or null`
2366
2367 `middle_click`'s config overrides.
2368
2369 - `defer_loading: optional boolean or null`
2370
2371 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2372
2373 - `enabled: optional boolean or null`
2374
2375 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.
2376
2377 - `mouse_move: optional BetaComputerMouseMoveConfig or null`
2378
2379 `mouse_move`'s config overrides.
2380
2381 - `defer_loading: optional boolean or null`
2382
2383 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2384
2385 - `enabled: optional boolean or null`
2386
2387 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.
2388
2389 - `right_click: optional BetaComputerRightClickConfig or null`
2390
2391 `right_click`'s config overrides.
2392
2393 - `defer_loading: optional boolean or null`
2394
2395 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2396
2397 - `enabled: optional boolean or null`
2398
2399 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.
2400
2401 - `screenshot: optional BetaComputerScreenshotConfig or null`
2402
2403 `screenshot`'s config overrides.
2404
2405 - `defer_loading: optional boolean or null`
2406
2407 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2408
2409 - `enabled: optional boolean or null`
2410
2411 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.
2412
2413 - `scroll: optional BetaComputerScrollConfig or null`
2414
2415 `scroll`'s config overrides.
2416
2417 - `defer_loading: optional boolean or null`
2418
2419 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2420
2421 - `enabled: optional boolean or null`
2422
2423 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.
2424
2425 - `triple_click: optional BetaComputerTripleClickConfig or null`
2426
2427 `triple_click`'s config overrides.
2428
2429 - `defer_loading: optional boolean or null`
2430
2431 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2432
2433 - `enabled: optional boolean or null`
2434
2435 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.
2436
2437 - `wait: optional BetaComputerWaitConfig or null`
2438
2439 `wait`'s config overrides.
2440
2441 - `defer_loading: optional boolean or null`
2442
2443 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2444
2445 - `enabled: optional boolean or null`
2446
2447 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.
2448
2449 - `zoom: optional BetaComputerZoomConfig or null`
2450
2451 `zoom`'s config overrides.
2452
2453 - `defer_loading: optional boolean or null`
2454
2455 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2456
2457 - `enabled: optional boolean or null`
2458
2459 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.
2460
2461 - `BetaToolTextEditor20250124 object`
2462
2463 - `type: "text_editor_20250124"`
2464
2465 - `name: "str_replace_editor"`
2466
2467 Name of the tool.
2468
2469 This is how the tool will be called by the model and in `tool_use` blocks.
2470
2471 - `allowed_callers: optional array of "direct" or "code_execution_20250825" or "code_execution_20260120" or "code_execution_20260521"`
2472
2473 - `"direct"`
2474
2475 - `"code_execution_20250825"`
2476
2477 - `"code_execution_20260120"`
2478
2479 - `"code_execution_20260521"`
2480
2481 - `cache_control: optional BetaCacheControlEphemeral or null`
2482
2483 Create a cache control breakpoint at this content block.
2484
2485 - `defer_loading: optional boolean`
2486
2487 If true, tool will not be included in initial system prompt. Only loaded when returned via tool_reference from tool search.
2488
2489 - `input_examples: optional array of map[unknown]`
2490
2491 - `strict: optional boolean`
2492
2493 When true, guarantees schema validation on tool names and inputs
2494
2495 - `BetaToolTextEditor20250429 object`
2496
2497 - `type: "text_editor_20250429"`
2498
2499 - `name: "str_replace_based_edit_tool"`
2500
2501 Name of the tool.
2502
2503 This is how the tool will be called by the model and in `tool_use` blocks.
2504
2505 - `allowed_callers: optional array of "direct" or "code_execution_20250825" or "code_execution_20260120" or "code_execution_20260521"`
2506
2507 - `"direct"`
2508
2509 - `"code_execution_20250825"`
2510
2511 - `"code_execution_20260120"`
2512
2513 - `"code_execution_20260521"`
2514
2515 - `cache_control: optional BetaCacheControlEphemeral or null`
2516
2517 Create a cache control breakpoint at this content block.
2518
2519 - `defer_loading: optional boolean`
2520
2521 If true, tool will not be included in initial system prompt. Only loaded when returned via tool_reference from tool search.
2522
2523 - `input_examples: optional array of map[unknown]`
2524
2525 - `strict: optional boolean`
2526
2527 When true, guarantees schema validation on tool names and inputs
2528
2529 - `BetaToolTextEditor20250728 object`
2530
2531 - `type: "text_editor_20250728"`
2532
2533 - `name: "str_replace_based_edit_tool"`
2534
2535 Name of the tool.
2536
2537 This is how the tool will be called by the model and in `tool_use` blocks.
2538
2539 - `allowed_callers: optional array of "direct" or "code_execution_20250825" or "code_execution_20260120" or "code_execution_20260521"`
2540
2541 - `"direct"`
2542
2543 - `"code_execution_20250825"`
2544
2545 - `"code_execution_20260120"`
2546
2547 - `"code_execution_20260521"`
2548
2549 - `cache_control: optional BetaCacheControlEphemeral or null`
2550
2551 Create a cache control breakpoint at this content block.
2552
2553 - `defer_loading: optional boolean`
2554
2555 If true, tool will not be included in initial system prompt. Only loaded when returned via tool_reference from tool search.
2556
2557 - `input_examples: optional array of map[unknown]`
2558
2559 - `max_characters: optional number or null`
2560
2561 Maximum number of characters to display when viewing a file. If not specified, defaults to displaying the full file.
2562
2563 minimum: 1
2564
2565 - `strict: optional boolean`
2566
2567 When true, guarantees schema validation on tool names and inputs
2568
2569 - `BetaWebSearchTool20250305 object`
2570
2571 - `type: "web_search_20250305"`
2572
2573 - `name: "web_search"`
2574
2575 Name of the tool.
2576
2577 This is how the tool will be called by the model and in `tool_use` blocks.
2578
2579 - `allowed_callers: optional array of "direct" or "code_execution_20250825" or "code_execution_20260120" or "code_execution_20260521"`
2580
2581 - `"direct"`
2582
2583 - `"code_execution_20250825"`
2584
2585 - `"code_execution_20260120"`
2586
2587 - `"code_execution_20260521"`
2588
2589 - `allowed_domains: optional array of string or null`
2590
2591 If provided, only these domains will be included in results. Cannot be used alongside `blocked_domains`.
2592
2593 - `blocked_domains: optional array of string or null`
2594
2595 If provided, these domains will never appear in results. Cannot be used alongside `allowed_domains`.
2596
2597 - `cache_control: optional BetaCacheControlEphemeral or null`
2598
2599 Create a cache control breakpoint at this content block.
2600
2601 - `defer_loading: optional boolean`
2602
2603 If true, tool will not be included in initial system prompt. Only loaded when returned via tool_reference from tool search.
2604
2605 - `max_uses: optional number or null`
2606
2607 Maximum number of times the tool can be used in the API request.
2608
2609 exclusiveMinimum: 0
2610
2611 - `strict: optional boolean`
2612
2613 When true, guarantees schema validation on tool names and inputs
2614
2615 - `user_location: optional BetaUserLocation or null`
2616
2617 Parameters for the user's location. Used to provide more relevant search results.
2618
2619 - `type: "approximate"`
2620
2621 - `city: optional string or null`
2622
2623 The city of the user.
2624
2625 maxLength: 255, minLength: 1
2626
2627 - `country: optional string or null`
2628
2629 The two letter [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of the user.
2630
2631 maxLength: 2, minLength: 2
2632
2633 - `region: optional string or null`
2634
2635 The region of the user.
2636
2637 maxLength: 255, minLength: 1
2638
2639 - `timezone: optional string or null`
2640
2641 The [IANA timezone](https://nodatime.org/TimeZones) of the user.
2642
2643 maxLength: 255, minLength: 1
2644
2645 - `BetaWebFetchTool20250910 object`
2646
2647 - `type: "web_fetch_20250910"`
2648
2649 - `name: "web_fetch"`
2650
2651 Name of the tool.
2652
2653 This is how the tool will be called by the model and in `tool_use` blocks.
2654
2655 - `allowed_callers: optional array of "direct" or "code_execution_20250825" or "code_execution_20260120" or "code_execution_20260521"`
2656
2657 - `"direct"`
2658
2659 - `"code_execution_20250825"`
2660
2661 - `"code_execution_20260120"`
2662
2663 - `"code_execution_20260521"`
2664
2665 - `allowed_domains: optional array of string or null`
2666
2667 List of domains to allow fetching from
2668
2669 - `blocked_domains: optional array of string or null`
2670
2671 List of domains to block fetching from
2672
2673 - `cache_control: optional BetaCacheControlEphemeral or null`
2674
2675 Create a cache control breakpoint at this content block.
2676
2677 - `citations: optional BetaCitationsConfigParam or null`
2678
2679 Citations configuration for fetched documents. Citations are disabled by default.
2680
2681 - `defer_loading: optional boolean`
2682
2683 If true, tool will not be included in initial system prompt. Only loaded when returned via tool_reference from tool search.
2684
2685 - `max_content_tokens: optional number or null`
2686
2687 Maximum number of tokens used by including web page text content in the context. The limit is approximate and does not apply to binary content such as PDFs.
2688
2689 exclusiveMinimum: 0
2690
2691 - `max_uses: optional number or null`
2692
2693 Maximum number of times the tool can be used in the API request.
2694
2695 exclusiveMinimum: 0
2696
2697 - `strict: optional boolean`
2698
2699 When true, guarantees schema validation on tool names and inputs
2700
2701 - `url_sources: optional BetaWebFetchURLSources or null`
2702
2703 Which sources contribute to the set of URLs web fetch may fetch.
2704
2705 Each key is a tagged variant: `user_input` is `all` or `none`; the
2706 two tool filters are `all`, `none`, `only` (only the named tools'
2707 results) or `except` (every result but the named tools'). A named tool
2708 must be declared in this request's `tools[]`.
2709
2710 - `client_tool_results: optional BetaWebFetchURLSourceAll or BetaWebFetchURLSourceNone or BetaWebFetchURLSourceOnly or BetaWebFetchURLSourceExcept`
2711
2712 Which client tools' results contribute fetchable URLs: "all", "none", or an only or except list of client tool names from tools[].
2713
2714 - `BetaWebFetchURLSourceAll object`
2715
2716 The `url_sources` variant under which a source contributes in
2717 full: every result of the tool filter's source, or all user input.
2718
2719 - `type: "all"`
2720
2721 - `BetaWebFetchURLSourceNone object`
2722
2723 The `url_sources` variant under which a source contributes nothing:
2724 no result of the tool filter's source, or no user input.
2725
2726 - `type: "none"`
2727
2728 - `BetaWebFetchURLSourceOnly object`
2729
2730 The tool filter variant under which only the named tools' results
2731 contribute.
2732
2733 - `type: "only"`
2734
2735 - `tools: array of BetaWebFetchURLSourceToolReference`
2736
2737 - `type: "tool_reference"`
2738
2739 - `name: string`
2740
2741 - `BetaWebFetchURLSourceExcept object`
2742
2743 The tool filter variant under which every result but the named
2744 tools' contributes.
2745
2746 - `type: "except"`
2747
2748 - `tools: array of BetaWebFetchURLSourceToolReference`
2749
2750 - `type: "tool_reference"`
2751
2752 - `name: string`
2753
2754 - `server_tool_results: optional BetaWebFetchURLSourceAll or BetaWebFetchURLSourceNone or BetaWebFetchURLSourceOnly or BetaWebFetchURLSourceExcept`
2755
2756 Which server tools' results contribute fetchable URLs: "all", "none", or an only or except list of server tool names from tools[]; only web_search and web_fetch results ever contribute.
2757
2758 - `BetaWebFetchURLSourceAll object`
2759
2760 The `url_sources` variant under which a source contributes in
2761 full: every result of the tool filter's source, or all user input.
2762
2763 - `BetaWebFetchURLSourceNone object`
2764
2765 The `url_sources` variant under which a source contributes nothing:
2766 no result of the tool filter's source, or no user input.
2767
2768 - `BetaWebFetchURLSourceOnly object`
2769
2770 The tool filter variant under which only the named tools' results
2771 contribute.
2772
2773 - `BetaWebFetchURLSourceExcept object`
2774
2775 The tool filter variant under which every result but the named
2776 tools' contributes.
2777
2778 - `user_input: optional BetaWebFetchURLSourceAll or BetaWebFetchURLSourceNone`
2779
2780 Whether URLs in user messages are fetchable: "all" or "none".
2781
2782 - `BetaWebFetchURLSourceAll object`
2783
2784 The `url_sources` variant under which a source contributes in
2785 full: every result of the tool filter's source, or all user input.
2786
2787 - `BetaWebFetchURLSourceNone object`
2788
2789 The `url_sources` variant under which a source contributes nothing:
2790 no result of the tool filter's source, or no user input.
2791
2792 - `BetaWebSearchTool20260209 object`
2793
2794 - `type: "web_search_20260209"`
2795
2796 - `name: "web_search"`
2797
2798 Name of the tool.
2799
2800 This is how the tool will be called by the model and in `tool_use` blocks.
2801
2802 - `allowed_callers: optional array of "direct" or "code_execution_20250825" or "code_execution_20260120" or "code_execution_20260521"`
2803
2804 - `"direct"`
2805
2806 - `"code_execution_20250825"`
2807
2808 - `"code_execution_20260120"`
2809
2810 - `"code_execution_20260521"`
2811
2812 - `allowed_domains: optional array of string or null`
2813
2814 If provided, only these domains will be included in results. Cannot be used alongside `blocked_domains`.
2815
2816 - `blocked_domains: optional array of string or null`
2817
2818 If provided, these domains will never appear in results. Cannot be used alongside `allowed_domains`.
2819
2820 - `cache_control: optional BetaCacheControlEphemeral or null`
2821
2822 Create a cache control breakpoint at this content block.
2823
2824 - `defer_loading: optional boolean`
2825
2826 If true, tool will not be included in initial system prompt. Only loaded when returned via tool_reference from tool search.
2827
2828 - `max_uses: optional number or null`
2829
2830 Maximum number of times the tool can be used in the API request.
2831
2832 exclusiveMinimum: 0
2833
2834 - `strict: optional boolean`
2835
2836 When true, guarantees schema validation on tool names and inputs
2837
2838 - `user_location: optional BetaUserLocation or null`
2839
2840 Parameters for the user's location. Used to provide more relevant search results.
2841
2842 - `BetaWebFetchTool20260209 object`
2843
2844 - `type: "web_fetch_20260209"`
2845
2846 - `name: "web_fetch"`
2847
2848 Name of the tool.
2849
2850 This is how the tool will be called by the model and in `tool_use` blocks.
2851
2852 - `allowed_callers: optional array of "direct" or "code_execution_20250825" or "code_execution_20260120" or "code_execution_20260521"`
2853
2854 - `"direct"`
2855
2856 - `"code_execution_20250825"`
2857
2858 - `"code_execution_20260120"`
2859
2860 - `"code_execution_20260521"`
2861
2862 - `allowed_domains: optional array of string or null`
2863
2864 List of domains to allow fetching from
2865
2866 - `blocked_domains: optional array of string or null`
2867
2868 List of domains to block fetching from
2869
2870 - `cache_control: optional BetaCacheControlEphemeral or null`
2871
2872 Create a cache control breakpoint at this content block.
2873
2874 - `citations: optional BetaCitationsConfigParam or null`
2875
2876 Citations configuration for fetched documents. Citations are disabled by default.
2877
2878 - `defer_loading: optional boolean`
2879
2880 If true, tool will not be included in initial system prompt. Only loaded when returned via tool_reference from tool search.
2881
2882 - `max_content_tokens: optional number or null`
2883
2884 Maximum number of tokens used by including web page text content in the context. The limit is approximate and does not apply to binary content such as PDFs.
2885
2886 exclusiveMinimum: 0
2887
2888 - `max_uses: optional number or null`
2889
2890 Maximum number of times the tool can be used in the API request.
2891
2892 exclusiveMinimum: 0
2893
2894 - `strict: optional boolean`
2895
2896 When true, guarantees schema validation on tool names and inputs
2897
2898 - `url_sources: optional BetaWebFetchURLSources or null`
2899
2900 Which sources contribute to the set of URLs web fetch may fetch.
2901
2902 Each key is a tagged variant: `user_input` is `all` or `none`; the
2903 two tool filters are `all`, `none`, `only` (only the named tools'
2904 results) or `except` (every result but the named tools'). A named tool
2905 must be declared in this request's `tools[]`.
2906
2907 - `BetaWebFetchTool20260309 object`
2908
2909 Web fetch tool with use_cache parameter for bypassing cached content.
2910
2911 - `type: "web_fetch_20260309"`
2912
2913 - `name: "web_fetch"`
2914
2915 Name of the tool.
2916
2917 This is how the tool will be called by the model and in `tool_use` blocks.
2918
2919 - `allowed_callers: optional array of "direct" or "code_execution_20250825" or "code_execution_20260120" or "code_execution_20260521"`
2920
2921 - `"direct"`
2922
2923 - `"code_execution_20250825"`
2924
2925 - `"code_execution_20260120"`
2926
2927 - `"code_execution_20260521"`
2928
2929 - `allowed_domains: optional array of string or null`
2930
2931 List of domains to allow fetching from
2932
2933 - `blocked_domains: optional array of string or null`
2934
2935 List of domains to block fetching from
2936
2937 - `cache_control: optional BetaCacheControlEphemeral or null`
2938
2939 Create a cache control breakpoint at this content block.
2940
2941 - `citations: optional BetaCitationsConfigParam or null`
2942
2943 Citations configuration for fetched documents. Citations are disabled by default.
2944
2945 - `defer_loading: optional boolean`
2946
2947 If true, tool will not be included in initial system prompt. Only loaded when returned via tool_reference from tool search.
2948
2949 - `max_content_tokens: optional number or null`
2950
2951 Maximum number of tokens used by including web page text content in the context. The limit is approximate and does not apply to binary content such as PDFs.
2952
2953 exclusiveMinimum: 0
2954
2955 - `max_uses: optional number or null`
2956
2957 Maximum number of times the tool can be used in the API request.
2958
2959 exclusiveMinimum: 0
2960
2961 - `strict: optional boolean`
2962
2963 When true, guarantees schema validation on tool names and inputs
2964
2965 - `url_sources: optional BetaWebFetchURLSources or null`
2966
2967 Which sources contribute to the set of URLs web fetch may fetch.
2968
2969 Each key is a tagged variant: `user_input` is `all` or `none`; the
2970 two tool filters are `all`, `none`, `only` (only the named tools'
2971 results) or `except` (every result but the named tools'). A named tool
2972 must be declared in this request's `tools[]`.
2973
2974 - `use_cache: optional boolean`
2975
2976 Whether to use cached content. Set to false to bypass the cache and fetch fresh content. Only set to false when the user explicitly requests fresh content or when fetching rapidly-changing sources.
2977
2978 - `BetaWebSearchTool20260318 object`
2979
2980 - `type: "web_search_20260318"`
2981
2982 - `name: "web_search"`
2983
2984 Name of the tool.
2985
2986 This is how the tool will be called by the model and in `tool_use` blocks.
2987
2988 - `allowed_callers: optional array of "direct" or "code_execution_20250825" or "code_execution_20260120" or "code_execution_20260521"`
2989
2990 - `"direct"`
2991
2992 - `"code_execution_20250825"`
2993
2994 - `"code_execution_20260120"`
2995
2996 - `"code_execution_20260521"`
2997
2998 - `allowed_domains: optional array of string or null`
2999
3000 If provided, only these domains will be included in results. Cannot be used alongside `blocked_domains`.
3001
3002 - `blocked_domains: optional array of string or null`
3003
3004 If provided, these domains will never appear in results. Cannot be used alongside `allowed_domains`.
3005
3006 - `cache_control: optional BetaCacheControlEphemeral or null`
3007
3008 Create a cache control breakpoint at this content block.
3009
3010 - `defer_loading: optional boolean`
3011
3012 If true, tool will not be included in initial system prompt. Only loaded when returned via tool_reference from tool search.
3013
3014 - `max_uses: optional number or null`
3015
3016 Maximum number of times the tool can be used in the API request.
3017
3018 exclusiveMinimum: 0
3019
3020 - `response_inclusion: optional "full" or "excluded"`
3021
3022 How this tool's result blocks appear in the API response when the result was consumed by a completed code_execution call in the same turn. 'full' returns the complete content (default). 'excluded' drops the nested server_tool_use and result block pair entirely. Results from direct calls, or from code_execution calls that paused before completing, are always returned in full so they can be sent back on the next turn.
3023
3024 - `"full"`
3025
3026 - `"excluded"`
3027
3028 - `strict: optional boolean`
3029
3030 When true, guarantees schema validation on tool names and inputs
3031
3032 - `user_location: optional BetaUserLocation or null`
3033
3034 Parameters for the user's location. Used to provide more relevant search results.
3035
3036 - `BetaWebFetchTool20260318 object`
3037
3038 - `type: "web_fetch_20260318"`
3039
3040 - `name: "web_fetch"`
3041
3042 Name of the tool.
3043
3044 This is how the tool will be called by the model and in `tool_use` blocks.
3045
3046 - `allowed_callers: optional array of "direct" or "code_execution_20250825" or "code_execution_20260120" or "code_execution_20260521"`
3047
3048 - `"direct"`
3049
3050 - `"code_execution_20250825"`
3051
3052 - `"code_execution_20260120"`
3053
3054 - `"code_execution_20260521"`
3055
3056 - `allowed_domains: optional array of string or null`
3057
3058 List of domains to allow fetching from
3059
3060 - `blocked_domains: optional array of string or null`
3061
3062 List of domains to block fetching from
3063
3064 - `cache_control: optional BetaCacheControlEphemeral or null`
3065
3066 Create a cache control breakpoint at this content block.
3067
3068 - `citations: optional BetaCitationsConfigParam or null`
3069
3070 Citations configuration for fetched documents. Citations are disabled by default.
3071
3072 - `defer_loading: optional boolean`
3073
3074 If true, tool will not be included in initial system prompt. Only loaded when returned via tool_reference from tool search.
3075
3076 - `max_content_tokens: optional number or null`
3077
3078 Maximum number of tokens used by including web page text content in the context. The limit is approximate and does not apply to binary content such as PDFs.
3079
3080 exclusiveMinimum: 0
3081
3082 - `max_uses: optional number or null`
3083
3084 Maximum number of times the tool can be used in the API request.
3085
3086 exclusiveMinimum: 0
3087
3088 - `response_inclusion: optional "full" or "excluded"`
3089
3090 How this tool's result blocks appear in the API response when the result was consumed by a completed code_execution call in the same turn. 'full' returns the complete content (default). 'excluded' drops the nested server_tool_use and result block pair entirely. Results from direct calls, or from code_execution calls that paused before completing, are always returned in full so they can be sent back on the next turn.
3091
3092 - `"full"`
3093
3094 - `"excluded"`
3095
3096 - `strict: optional boolean`
3097
3098 When true, guarantees schema validation on tool names and inputs
3099
3100 - `url_sources: optional BetaWebFetchURLSources or null`
3101
3102 Which sources contribute to the set of URLs web fetch may fetch.
3103
3104 Each key is a tagged variant: `user_input` is `all` or `none`; the
3105 two tool filters are `all`, `none`, `only` (only the named tools'
3106 results) or `except` (every result but the named tools'). A named tool
3107 must be declared in this request's `tools[]`.
3108
3109 - `use_cache: optional boolean`
3110
3111 Whether to use cached content. Set to false to bypass the cache and fetch fresh content. Only set to false when the user explicitly requests fresh content or when fetching rapidly-changing sources.
3112
3113 - `BetaAdvisorTool20260301 object`
3114
3115 - `type: "advisor_20260301"`
3116
3117 - `model: Model`
3118
3119 The model that will complete your prompt.
3120
3121 See [models](https://docs.anthropic.com/en/docs/models-overview) for additional details and options.
3122
3123 - `"claude-fable-5-1" or "claude-opus-5-5" or "claude-mythos-5-1" or 15 more`
3124
3125 The model that will complete your prompt.
3126
3127 See [models](https://docs.anthropic.com/en/docs/models-overview) for additional details and options.
3128
3129 - `"claude-fable-5-1"`
3130
3131 Frontier intelligence for ambitious tasks across coding, scientific discovery, and enterprise workflows
3132
3133 - `"claude-opus-5-5"`
3134
3135 Powerful intelligence for coding, knowledge work, and long-running agents
3136
3137 - `"claude-mythos-5-1"`
3138
3139 Our most capable model for cybersecurity and biology research, available through trusted access programs
3140
3141 - `"claude-sonnet-5"`
3142
3143 High-performance model for coding and agents
3144
3145 - `"claude-fable-5"`
3146
3147 Next generation of intelligence for the hardest knowledge work and coding problems
3148
3149 - `"claude-mythos-5"`
3150
3151 Most capable model for cybersecurity and biology research
3152
3153 - `"claude-opus-5"`
3154
3155 Powerful intelligence for long-running agents and coding
3156
3157 - `"claude-opus-4-8"`
3158
3159 Powerful intelligence for long-running agents and coding
3160
3161 - `"claude-opus-4-7"`
3162
3163 Powerful intelligence for long-running agents and coding
3164
3165 - `"claude-mythos-preview"`
3166
3167 New class of intelligence, strongest in coding and cybersecurity
3168
3169 - `"claude-opus-4-6"`
3170
3171 Powerful intelligence for long-running agents and coding
3172
3173 - `"claude-sonnet-4-6"`
3174
3175 Best combination of speed and intelligence
3176
3177 - `"claude-haiku-4-5"`
3178
3179 Fastest model with near-frontier intelligence
3180
3181 - `"claude-haiku-4-5-20251001"`
3182
3183 Fastest model with near-frontier intelligence
3184
3185 - `"claude-opus-4-5"`
3186
3187 Powerful intelligence for long-running agents and coding
3188
3189 - `"claude-opus-4-5-20251101"`
3190
3191 Powerful intelligence for long-running agents and coding
3192
3193 - `"claude-sonnet-4-5"`
3194
3195 High-performance model for agents and coding
3196
3197 - `"claude-sonnet-4-5-20250929"`
3198
3199 High-performance model for agents and coding
3200
3201 - `string`
3202
3203 - `name: "advisor"`
3204
3205 Name of the tool.
3206
3207 This is how the tool will be called by the model and in `tool_use` blocks.
3208
3209 - `allowed_callers: optional array of "direct" or "code_execution_20250825" or "code_execution_20260120" or "code_execution_20260521"`
3210
3211 - `"direct"`
3212
3213 - `"code_execution_20250825"`
3214
3215 - `"code_execution_20260120"`
3216
3217 - `"code_execution_20260521"`
3218
3219 - `cache_control: optional BetaCacheControlEphemeral or null`
3220
3221 Create a cache control breakpoint at this content block.
3222
3223 - `caching: optional BetaCacheControlEphemeral or null`
3224
3225 Caching for the advisor's own prompt. When set, each advisor call writes a cache entry at the given TTL so subsequent calls in the same conversation read the stable prefix. When omitted, the advisor prompt is not cached.
3226
3227 - `defer_loading: optional boolean`
3228
3229 If true, tool will not be included in initial system prompt. Only loaded when returned via tool_reference from tool search.
3230
3231 - `max_tokens: optional number or null`
3232
3233 Bounds the advisor's total output (thinking + text) per call. When the advisor hits this cap, the returned advisor_result or advisor_redacted_result block carries stop_reason='max_tokens', and a truncation note is appended to the advice text the worker model sees (inside the encrypted blob in redacted mode). When set, the server also emits a remaining-tokens budget block in the advisor's prompt so the advisor self-shapes toward the cap. When omitted, the advisor model's default output cap applies and no budget block is emitted.
3234
3235 minimum: 1024
3236
3237 - `max_uses: optional number or null`
3238
3239 Maximum number of times the tool can be used in the API request.
3240
3241 exclusiveMinimum: 0
3242
3243 - `strict: optional boolean`
3244
3245 When true, guarantees schema validation on tool names and inputs
3246
3247 - `BetaToolSearchToolBm25_20251119 object`
3248
3249 - `type: "tool_search_tool_bm25_20251119" or "tool_search_tool_bm25"`
3250
3251 - `"tool_search_tool_bm25_20251119"`
3252
3253 - `"tool_search_tool_bm25"`
3254
3255 - `name: "tool_search_tool_bm25"`
3256
3257 Name of the tool.
3258
3259 This is how the tool will be called by the model and in `tool_use` blocks.
3260
3261 - `allowed_callers: optional array of "direct" or "code_execution_20250825" or "code_execution_20260120" or "code_execution_20260521"`
3262
3263 - `"direct"`
3264
3265 - `"code_execution_20250825"`
3266
3267 - `"code_execution_20260120"`
3268
3269 - `"code_execution_20260521"`
3270
3271 - `cache_control: optional BetaCacheControlEphemeral or null`
3272
3273 Create a cache control breakpoint at this content block.
3274
3275 - `defer_loading: optional boolean`
3276
3277 If true, tool will not be included in initial system prompt. Only loaded when returned via tool_reference from tool search.
3278
3279 - `strict: optional boolean`
3280
3281 When true, guarantees schema validation on tool names and inputs
3282
3283 - `BetaToolSearchToolRegex20251119 object`
3284
3285 - `type: "tool_search_tool_regex_20251119" or "tool_search_tool_regex"`
3286
3287 - `"tool_search_tool_regex_20251119"`
3288
3289 - `"tool_search_tool_regex"`
3290
3291 - `name: "tool_search_tool_regex"`
3292
3293 Name of the tool.
3294
3295 This is how the tool will be called by the model and in `tool_use` blocks.
3296
3297 - `allowed_callers: optional array of "direct" or "code_execution_20250825" or "code_execution_20260120" or "code_execution_20260521"`
3298
3299 - `"direct"`
3300
3301 - `"code_execution_20250825"`
3302
3303 - `"code_execution_20260120"`
3304
3305 - `"code_execution_20260521"`
3306
3307 - `cache_control: optional BetaCacheControlEphemeral or null`
3308
3309 Create a cache control breakpoint at this content block.
3310
3311 - `defer_loading: optional boolean`
3312
3313 If true, tool will not be included in initial system prompt. Only loaded when returned via tool_reference from tool search.
3314
3315 - `strict: optional boolean`
3316
3317 When true, guarantees schema validation on tool names and inputs
3318
3319 - `BetaMCPToolset object`
3320
3321 Configuration for a group of tools from an MCP server.
3322
3323 Allows configuring enabled status and defer_loading for all tools
3324 from an MCP server, with optional per-tool overrides.
3325
3326 - `type: "mcp_toolset"`
3327
3328 - `mcp_server_name: string`
3329
3330 Name of the MCP server to configure tools for
3331
3332 maxLength: 255, minLength: 1
3333
3334 - `cache_control: optional BetaCacheControlEphemeral or null`
3335
3336 Create a cache control breakpoint at this content block.
3337
3338 - `configs: optional map[BetaMCPToolConfig] or null`
3339
3340 Configuration overrides for specific tools, keyed by tool name
3341
3342 - `defer_loading: optional boolean`
3343
3344 - `enabled: optional boolean`
3345
3346 - `default_config: optional BetaMCPToolDefaultConfig`
3347
3348 Default configuration applied to all tools from this server
3349
3350 - `defer_loading: optional boolean`
3351
3352 - `enabled: optional boolean`
3353
3354 - `tools: optional array of BetaMCPToolParam or null`
3355
3356 The server's tool listing, pinned: when present, the server is not asked for its tools before sampling and exactly these entries, with `default_config` and `configs` applied, are the toolset's tools. Copy it from the `mcp_tool_listing` block of an earlier response.
3357
3358 - `input_schema: map[unknown]`
3359
3360 The tool's input schema as the MCP server lists it, verbatim.
3361
3362 - `name: string`
3363
3364 The tool's name as the MCP server lists it (not prefixed with the server name).
3365
3366 minLength: 1
3367
3368 - `description: optional string or null`
3369
3370 The tool's description as the MCP server lists it.
3371
3372 - `cache_control: optional BetaCacheControlEphemeral or null`
3373
3374 Create a cache control breakpoint at this content block.
3375
3376 - `BetaRequestToolRemovalBlock object`
3377
3378 Mid-conversation directive to withdraw a tool.
3379
3380 `tool` references a tool (or MCP toolset) by name: one declared in the
3381 request's `tools` or defined earlier in `messages`. It is no longer
3382 offered to the model from this point in the conversation onward.
3383
3384 - `type: "tool_removal"`
3385
3386 - `tool: BetaToolChangeToolReference or BetaToolChangeMCPToolReference or BetaToolChangeMCPToolsetReference`
3387
3388 - `BetaToolChangeToolReference object`
3389
3390 Reference to a single tool, by the name the model uses to call it: a
3391 tool declared in `tools` or defined by an earlier `tool_addition`
3392 block. Does not accept the composed `{server}_{name}` form the server
3393 assigns to MCP-resolved tools; use `mcp_tool_reference` or
3394 `mcp_toolset_reference` for those.
3395
3396 - `BetaToolChangeMCPToolReference object`
3397
3398 Reference to a single MCP tool by its server and remote name; the
3399 same `server_name`/`name` pair `mcp_tool_use` carries.
3400
3401 - `BetaToolChangeMCPToolsetReference object`
3402
3403 Reference to every tool in the named MCP server's toolset.
3404
3405 - `cache_control: optional BetaCacheControlEphemeral or null`
3406
3407 Create a cache control breakpoint at this content block.
3408
12843409 - `BetaRequestToolAdditionBlock object`
12853410
1286 Mid-conversation directive to surface a declared tool.
1287
1288 `tool` references a tool (or MCP toolset) by name from the request's
1289 `tools`; it is offered to the model from this point in the
1290 conversation onward.
1291
1292 - `type: "tool_addition"`
1293
1294 - `tool: BetaToolChangeToolReference or BetaToolChangeMCPToolReference or BetaToolChangeMCPToolsetReference`
1295
1296 - `BetaToolChangeToolReference object`
1297
1298 Reference to a single tool the caller declared directly in
1299 `tools[]`. Does not accept the composed `{server}_{name}` form the
1300 server assigns to MCP-resolved tools — use `mcp_tool_reference` or
1301 `mcp_toolset_reference` for those.
1302
1303 - `type: "tool_reference"`
1304
1305 - `name: string`
1306
1307 pattern: ^[a-zA-Z0-9_-]{1,128}$
1308
1309 - `BetaToolChangeMCPToolReference object`
1310
1311 Reference to a single MCP tool by its server and remote name; the
1312 same `server_name`/`name` pair `mcp_tool_use` carries.
1313
1314 - `type: "mcp_tool_reference"`
1315
1316 - `name: string`
1317
1318 - `server_name: string`
1319
1320 - `BetaToolChangeMCPToolsetReference object`
1321
1322 Reference to every tool in the named MCP server's toolset.
1323
1324 - `type: "mcp_toolset_reference"`
1325
1326 - `server_name: string`
1327
1328 - `cache_control: optional BetaCacheControlEphemeral or null`
1329
1330 Create a cache control breakpoint at this content block.
3411 Mid-conversation directive to make a tool available.
3412
3413 `tool` is a reference to a tool (or MCP toolset) declared in the
3414 request's `tools`. Under the `inline-tools-2026-09-15` beta it may
3415 instead be a reference to a tool defined earlier in `messages`, or a
3416 `tool_definition` object that carries an inline tool definition in
3417 `definition` (the same object a `tools` entry holds). An `mcp_toolset`
3418 definition also requires the `mcp-client-2026-09-15` beta. The tool is
3419 offered to the model from this point in the conversation onward.
13313420
13323421 - `BetaRequestToolRemovalBlock object`
13333422
13343423 Mid-conversation directive to withdraw a tool.
13353424
1336 `tool` references a tool (or MCP toolset) by name from the request's
1337 `tools`; it is no longer offered to the model from this point in the
1338 conversation onward.
1339
1340 - `type: "tool_removal"`
1341
1342 - `tool: BetaToolChangeToolReference or BetaToolChangeMCPToolReference or BetaToolChangeMCPToolsetReference`
1343
1344 - `BetaToolChangeToolReference object`
1345
1346 Reference to a single tool the caller declared directly in
1347 `tools[]`. Does not accept the composed `{server}_{name}` form the
1348 server assigns to MCP-resolved tools — use `mcp_tool_reference` or
1349 `mcp_toolset_reference` for those.
1350
1351 - `BetaToolChangeMCPToolReference object`
1352
1353 Reference to a single MCP tool by its server and remote name; the
1354 same `server_name`/`name` pair `mcp_tool_use` carries.
1355
1356 - `BetaToolChangeMCPToolsetReference object`
1357
1358 Reference to every tool in the named MCP server's toolset.
1359
1360 - `cache_control: optional BetaCacheControlEphemeral or null`
1361
1362 Create a cache control breakpoint at this content block.
3425 `tool` references a tool (or MCP toolset) by name: one declared in the
3426 request's `tools` or defined earlier in `messages`. It is no longer
3427 offered to the model from this point in the conversation onward.
3428
3429 - `BetaMCPToolListingBlockParam object`
3430
3431 The tool listing an MCP server returned while an earlier response was
3432 produced, as that response carried it. Send the assistant message back
3433 unchanged, this block included, and the server uses this listing for the
3434 matching `mcp_toolset` instead of asking the MCP server again.
3435
3436 - `type: "mcp_tool_listing"`
3437
3438 - `mcp_server_name: string`
3439
3440 The name of the MCP server this listing came from, as `mcp_servers` declares it.
3441
3442 maxLength: 255, minLength: 1
3443
3444 - `tools: array of BetaMCPToolParam`
3445
3446 The server's tools, exactly as the response listed them.
3447
3448 - `input_schema: map[unknown]`
3449
3450 The tool's input schema as the MCP server lists it, verbatim.
3451
3452 - `name: string`
3453
3454 The tool's name as the MCP server lists it (not prefixed with the server name).
3455
3456 minLength: 1
3457
3458 - `description: optional string or null`
3459
3460 The tool's description as the MCP server lists it.
13633461
13643462 - `BetaFallbackBlockParam object`
13653463
from line 3486
13883486 The model that will complete your prompt.
13893487
13903488 See [models](https://docs.anthropic.com/en/docs/models-overview) for additional details and options.
1391
1392 - `"claude-fable-5-1" or "claude-mythos-5-1" or "claude-sonnet-5" or 14 more`
1393
1394 The model that will complete your prompt.
1395
1396 See [models](https://docs.anthropic.com/en/docs/models-overview) for additional details and options.
1397
1398 - `"claude-fable-5-1"`
1399
1400 Frontier intelligence for ambitious tasks across coding, scientific discovery, and enterprise workflows
1401
1402 - `"claude-mythos-5-1"`
1403
1404 Our most capable model for cybersecurity and biology research, available through trusted access programs
1405
1406 - `"claude-sonnet-5"`
1407
1408 High-performance model for coding and agents
1409
1410 - `"claude-fable-5"`
1411
1412 Next generation of intelligence for the hardest knowledge work and coding problems
1413
1414 - `"claude-mythos-5"`
1415
1416 Most capable model for cybersecurity and biology research
1417
1418 - `"claude-opus-5"`
1419
1420 Powerful intelligence for long-running agents and coding
1421
1422 - `"claude-opus-4-8"`
1423
1424 Powerful intelligence for long-running agents and coding
1425
1426 - `"claude-opus-4-7"`
1427
1428 Powerful intelligence for long-running agents and coding
1429
1430 - `"claude-mythos-preview"`
1431
1432 New class of intelligence, strongest in coding and cybersecurity
1433
1434 - `"claude-opus-4-6"`
1435
1436 Powerful intelligence for long-running agents and coding
1437
1438 - `"claude-sonnet-4-6"`
1439
1440 Best combination of speed and intelligence
1441
1442 - `"claude-haiku-4-5"`
1443
1444 Fastest model with near-frontier intelligence
1445
1446 - `"claude-haiku-4-5-20251001"`
1447
1448 Fastest model with near-frontier intelligence
1449
1450 - `"claude-opus-4-5"`
1451
1452 Powerful intelligence for long-running agents and coding
1453
1454 - `"claude-opus-4-5-20251101"`
1455
1456 Powerful intelligence for long-running agents and coding
1457
1458 - `"claude-sonnet-4-5"`
1459
1460 High-performance model for agents and coding
1461
1462 - `"claude-sonnet-4-5-20250929"`
1463
1464 High-performance model for agents and coding
1465
1466 - `string`
14673489
14683490 - `to: BetaFallbackInfoParam`
14693491
from line 3958
19363958
19373959 - `BetaTool object`
19383960
1939 - `type: optional "custom" or null`
1940
1941 - `input_schema: object`
1942
1943 [JSON schema](https://json-schema.org/draft/2020-12) for this tool's input.
1944
1945 This defines the shape of the `input` that your tool accepts and that the model will produce.
1946
1947 - `type: "object"`
1948
1949 - `properties: optional map[unknown] or null`
1950
1951 - `required: optional array of string or null`
1952
1953 - `name: string`
1954
1955 Name of the tool.
1956
1957 This is how the tool will be called by the model and in `tool_use` blocks.
1958
1959 maxLength: 128, minLength: 1, pattern: ^[a-zA-Z0-9_-]{1,128}$
1960
1961 - `allowed_callers: optional array of "direct" or "code_execution_20250825" or "code_execution_20260120" or "code_execution_20260521"`
1962
1963 - `"direct"`
1964
1965 - `"code_execution_20250825"`
1966
1967 - `"code_execution_20260120"`
1968
1969 - `"code_execution_20260521"`
1970
1971 - `cache_control: optional BetaCacheControlEphemeral or null`
1972
1973 Create a cache control breakpoint at this content block.
1974
1975 - `defer_loading: optional boolean`
1976
1977 If true, tool will not be included in initial system prompt. Only loaded when returned via tool_reference from tool search.
1978
1979 - `description: optional string`
1980
1981 Description of what this tool does.
1982
1983 Tool descriptions should be as detailed as possible. The more information that the model has about what the tool is and how to use it, the better it will perform. You can use natural language descriptions to reinforce important aspects of the tool input JSON schema.
1984
1985 - `eager_input_streaming: optional boolean or null`
1986
1987 Enable eager input streaming for this tool. When true, tool input parameters will be streamed incrementally as they are generated, and types will be inferred on-the-fly rather than buffering the full JSON output. When false, streaming is disabled for this tool even if the fine-grained-tool-streaming beta is active. When null (default), uses the default behavior based on beta headers.
1988
1989 - `input_examples: optional array of map[unknown]`
1990
1991 - `strict: optional boolean`
1992
1993 When true, guarantees schema validation on tool names and inputs
1994
19953961 - `BetaToolBash20241022 object`
19963962
1997 - `type: "bash_20241022"`
1998
1999 - `name: "bash"`
2000
2001 Name of the tool.
2002
2003 This is how the tool will be called by the model and in `tool_use` blocks.
2004
2005 - `allowed_callers: optional array of "direct" or "code_execution_20250825" or "code_execution_20260120" or "code_execution_20260521"`
2006
2007 - `"direct"`
2008
2009 - `"code_execution_20250825"`
2010
2011 - `"code_execution_20260120"`
2012
2013 - `"code_execution_20260521"`
2014
2015 - `cache_control: optional BetaCacheControlEphemeral or null`
2016
2017 Create a cache control breakpoint at this content block.
2018
2019 - `defer_loading: optional boolean`
2020
2021 If true, tool will not be included in initial system prompt. Only loaded when returned via tool_reference from tool search.
2022
2023 - `input_examples: optional array of map[unknown]`
2024
2025 - `strict: optional boolean`
2026
2027 When true, guarantees schema validation on tool names and inputs
2028
20293963 - `BetaToolBash20250124 object`
20303964
2031 - `type: "bash_20250124"`
2032
2033 - `name: "bash"`
2034
2035 Name of the tool.
2036
2037 This is how the tool will be called by the model and in `tool_use` blocks.
2038
2039 - `allowed_callers: optional array of "direct" or "code_execution_20250825" or "code_execution_20260120" or "code_execution_20260521"`
2040
2041 - `"direct"`
2042
2043 - `"code_execution_20250825"`
2044
2045 - `"code_execution_20260120"`
2046
2047 - `"code_execution_20260521"`
2048
2049 - `cache_control: optional BetaCacheControlEphemeral or null`
2050
2051 Create a cache control breakpoint at this content block.
2052
2053 - `defer_loading: optional boolean`
2054
2055 If true, tool will not be included in initial system prompt. Only loaded when returned via tool_reference from tool search.
2056
2057 - `input_examples: optional array of map[unknown]`
2058
2059 - `strict: optional boolean`
2060
2061 When true, guarantees schema validation on tool names and inputs
2062
20633965 - `BetaCodeExecutionTool20250522 object`
20643966
2065 - `type: "code_execution_20250522"`
2066
2067 - `name: "code_execution"`
2068
2069 Name of the tool.
2070
2071 This is how the tool will be called by the model and in `tool_use` blocks.
2072
2073 - `allowed_callers: optional array of "direct" or "code_execution_20250825" or "code_execution_20260120" or "code_execution_20260521"`
2074
2075 - `"direct"`
2076
2077 - `"code_execution_20250825"`
2078
2079 - `"code_execution_20260120"`
2080
2081 - `"code_execution_20260521"`
2082
2083 - `cache_control: optional BetaCacheControlEphemeral or null`
2084
2085 Create a cache control breakpoint at this content block.
2086
2087 - `defer_loading: optional boolean`
2088
2089 If true, tool will not be included in initial system prompt. Only loaded when returned via tool_reference from tool search.
2090
2091 - `strict: optional boolean`
2092
2093 When true, guarantees schema validation on tool names and inputs
2094
20953967 - `BetaCodeExecutionTool20250825 object`
20963968
2097 - `type: "code_execution_20250825"`
2098
2099 - `name: "code_execution"`
2100
2101 Name of the tool.
2102
2103 This is how the tool will be called by the model and in `tool_use` blocks.
2104
2105 - `allowed_callers: optional array of "direct" or "code_execution_20250825" or "code_execution_20260120" or "code_execution_20260521"`
2106
2107 - `"direct"`
2108
2109 - `"code_execution_20250825"`
2110
2111 - `"code_execution_20260120"`
2112
2113 - `"code_execution_20260521"`
2114
2115 - `cache_control: optional BetaCacheControlEphemeral or null`
2116
2117 Create a cache control breakpoint at this content block.
2118
2119 - `defer_loading: optional boolean`
2120
2121 If true, tool will not be included in initial system prompt. Only loaded when returned via tool_reference from tool search.
2122
2123 - `strict: optional boolean`
2124
2125 When true, guarantees schema validation on tool names and inputs
2126
21273969 - `BetaCodeExecutionTool20260120 object`
21283970
21293971 Code execution tool with REPL state persistence (daemon mode + gVisor checkpoint).
21303972
2131 - `type: "code_execution_20260120"`
2132
2133 - `name: "code_execution"`
2134
2135 Name of the tool.
2136
2137 This is how the tool will be called by the model and in `tool_use` blocks.
2138
2139 - `allowed_callers: optional array of "direct" or "code_execution_20250825" or "code_execution_20260120" or "code_execution_20260521"`
2140
2141 - `"direct"`
2142
2143 - `"code_execution_20250825"`
2144
2145 - `"code_execution_20260120"`
2146
2147 - `"code_execution_20260521"`
2148
2149 - `cache_control: optional BetaCacheControlEphemeral or null`
2150
2151 Create a cache control breakpoint at this content block.
2152
2153 - `defer_loading: optional boolean`
2154
2155 If true, tool will not be included in initial system prompt. Only loaded when returned via tool_reference from tool search.
2156
2157 - `strict: optional boolean`
2158
2159 When true, guarantees schema validation on tool names and inputs
2160
21613973 - `BetaCodeExecutionTool20260521 object`
21623974
21633975 Code execution tool with REPL state persistence.
2164
2165 - `type: "code_execution_20260521"`
2166
2167 - `name: "code_execution"`
2168
2169 Name of the tool.
2170
2171 This is how the tool will be called by the model and in `tool_use` blocks.
2172
2173 - `allowed_callers: optional array of "direct" or "code_execution_20250825" or "code_execution_20260120" or "code_execution_20260521"`
2174
2175 - `"direct"`
2176
2177 - `"code_execution_20250825"`
2178
2179 - `"code_execution_20260120"`
2180
2181 - `"code_execution_20260521"`
2182
2183 - `cache_control: optional BetaCacheControlEphemeral or null`
2184
2185 Create a cache control breakpoint at this content block.
2186
2187 - `defer_loading: optional boolean`
2188
2189 If true, tool will not be included in initial system prompt. Only loaded when returned via tool_reference from tool search.
2190
2191 - `strict: optional boolean`
2192
2193 When true, guarantees schema validation on tool names and inputs
21943976
21953977 - `BetaBrowserToolset20260801 object`
21963978
from line 3981
21993981 the family's tool with any members disabled via `configs` removed
22003982 from its schema.
22013983
2202 - `type: "browser_toolset_20260801"`
2203
2204 - `cache_control: optional BetaCacheControlEphemeral or null`
2205
2206 Create a cache control breakpoint at this content block.
2207
2208 - `configs: optional BetaBrowserToolsetConfigs or null`
2209
2210 Per-member configuration for `browser_toolset_20260801`: one
2211 optional field per member tool, keyed by the member name — the same
2212 name the member's `tool_use` blocks carry. Every member is an
2213 accepted key, and a member's defaults apply wherever its key is
2214 absent. Unknown keys are rejected: the field set is this toolset
2215 version's complete member set.
2216
2217 - `type: optional BetaBrowserTypeConfig or null`
2218
2219 `type`'s config overrides.
2220
2221 - `defer_loading: optional boolean or null`
2222
2223 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2224
2225 - `enabled: optional boolean or null`
2226
2227 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.
2228
2229 - `close_tab: optional BetaBrowserCloseTabConfig or null`
2230
2231 `close_tab`'s config overrides.
2232
2233 - `defer_loading: optional boolean or null`
2234
2235 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2236
2237 - `enabled: optional boolean or null`
2238
2239 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.
2240
2241 - `double_click: optional BetaBrowserDoubleClickConfig or null`
2242
2243 `double_click`'s config overrides.
2244
2245 - `defer_loading: optional boolean or null`
2246
2247 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2248
2249 - `enabled: optional boolean or null`
2250
2251 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.
2252
2253 - `file_upload: optional BetaBrowserFileUploadConfig or null`
2254
2255 `file_upload`'s config overrides.
2256
2257 - `defer_loading: optional boolean or null`
2258
2259 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2260
2261 - `enabled: optional boolean or null`
2262
2263 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.
2264
2265 - `find: optional BetaBrowserFindConfig or null`
2266
2267 `find`'s config overrides.
2268
2269 - `defer_loading: optional boolean or null`
2270
2271 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2272
2273 - `enabled: optional boolean or null`
2274
2275 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.
2276
2277 - `form_input: optional BetaBrowserFormInputConfig or null`
2278
2279 `form_input`'s config overrides.
2280
2281 - `defer_loading: optional boolean or null`
2282
2283 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2284
2285 - `enabled: optional boolean or null`
2286
2287 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.
2288
2289 - `get_page_text: optional BetaBrowserGetPageTextConfig or null`
2290
2291 `get_page_text`'s config overrides.
2292
2293 - `defer_loading: optional boolean or null`
2294
2295 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2296
2297 - `enabled: optional boolean or null`
2298
2299 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.
2300
2301 - `hold_key: optional BetaBrowserHoldKeyConfig or null`
2302
2303 `hold_key`'s config overrides.
2304
2305 - `defer_loading: optional boolean or null`
2306
2307 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2308
2309 - `enabled: optional boolean or null`
2310
2311 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.
2312
2313 - `hover: optional BetaBrowserHoverConfig or null`
2314
2315 `hover`'s config overrides.
2316
2317 - `defer_loading: optional boolean or null`
2318
2319 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2320
2321 - `enabled: optional boolean or null`
2322
2323 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.
2324
2325 - `javascript_exec: optional BetaBrowserJavascriptExecConfig or null`
2326
2327 `javascript_exec`'s config overrides.
2328
2329 - `defer_loading: optional boolean or null`
2330
2331 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2332
2333 - `enabled: optional boolean or null`
2334
2335 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.
2336
2337 - `key: optional BetaBrowserKeyConfig or null`
2338
2339 `key`'s config overrides.
2340
2341 - `defer_loading: optional boolean or null`
2342
2343 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2344
2345 - `enabled: optional boolean or null`
2346
2347 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.
2348
2349 - `left_click: optional BetaBrowserLeftClickConfig or null`
2350
2351 `left_click`'s config overrides.
2352
2353 - `defer_loading: optional boolean or null`
2354
2355 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2356
2357 - `enabled: optional boolean or null`
2358
2359 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.
2360
2361 - `left_click_drag: optional BetaBrowserLeftClickDragConfig or null`
2362
2363 `left_click_drag`'s config overrides.
2364
2365 - `defer_loading: optional boolean or null`
2366
2367 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2368
2369 - `enabled: optional boolean or null`
2370
2371 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.
2372
2373 - `left_mouse_down: optional BetaBrowserLeftMouseDownConfig or null`
2374
2375 `left_mouse_down`'s config overrides.
2376
2377 - `defer_loading: optional boolean or null`
2378
2379 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2380
2381 - `enabled: optional boolean or null`
2382
2383 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.
2384
2385 - `left_mouse_up: optional BetaBrowserLeftMouseUpConfig or null`
2386
2387 `left_mouse_up`'s config overrides.
2388
2389 - `defer_loading: optional boolean or null`
2390
2391 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2392
2393 - `enabled: optional boolean or null`
2394
2395 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.
2396
2397 - `list_tabs: optional BetaBrowserListTabsConfig or null`
2398
2399 `list_tabs`'s config overrides.
2400
2401 - `defer_loading: optional boolean or null`
2402
2403 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2404
2405 - `enabled: optional boolean or null`
2406
2407 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.
2408
2409 - `middle_click: optional BetaBrowserMiddleClickConfig or null`
2410
2411 `middle_click`'s config overrides.
2412
2413 - `defer_loading: optional boolean or null`
2414
2415 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2416
2417 - `enabled: optional boolean or null`
2418
2419 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.
2420
2421 - `mouse_move: optional BetaBrowserMouseMoveConfig or null`
2422
2423 `mouse_move`'s config overrides.
2424
2425 - `defer_loading: optional boolean or null`
2426
2427 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2428
2429 - `enabled: optional boolean or null`
2430
2431 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.
2432
2433 - `navigate: optional BetaBrowserNavigateConfig or null`
2434
2435 `navigate`'s config overrides.
2436
2437 - `defer_loading: optional boolean or null`
2438
2439 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2440
2441 - `enabled: optional boolean or null`
2442
2443 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.
2444
2445 - `new_tab: optional BetaBrowserNewTabConfig or null`
2446
2447 `new_tab`'s config overrides.
2448
2449 - `defer_loading: optional boolean or null`
2450
2451 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2452
2453 - `enabled: optional boolean or null`
2454
2455 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.
2456
2457 - `read_console: optional BetaBrowserReadConsoleConfig or null`
2458
2459 `read_console`'s config overrides.
2460
2461 - `defer_loading: optional boolean or null`
2462
2463 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2464
2465 - `enabled: optional boolean or null`
2466
2467 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.
2468
2469 - `read_network: optional BetaBrowserReadNetworkConfig or null`
2470
2471 `read_network`'s config overrides.
2472
2473 - `defer_loading: optional boolean or null`
2474
2475 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2476
2477 - `enabled: optional boolean or null`
2478
2479 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.
2480
2481 - `read_page: optional BetaBrowserReadPageConfig or null`
2482
2483 `read_page`'s config overrides.
2484
2485 - `defer_loading: optional boolean or null`
2486
2487 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2488
2489 - `enabled: optional boolean or null`
2490
2491 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.
2492
2493 - `right_click: optional BetaBrowserRightClickConfig or null`
2494
2495 `right_click`'s config overrides.
2496
2497 - `defer_loading: optional boolean or null`
2498
2499 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2500
2501 - `enabled: optional boolean or null`
2502
2503 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.
2504
2505 - `screenshot: optional BetaBrowserScreenshotConfig or null`
2506
2507 `screenshot`'s config overrides.
2508
2509 - `defer_loading: optional boolean or null`
2510
2511 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2512
2513 - `enabled: optional boolean or null`
2514
2515 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.
2516
2517 - `scroll: optional BetaBrowserScrollConfig or null`
2518
2519 `scroll`'s config overrides.
2520
2521 - `defer_loading: optional boolean or null`
2522
2523 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2524
2525 - `enabled: optional boolean or null`
2526
2527 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.
2528
2529 - `scroll_to: optional BetaBrowserScrollToConfig or null`
2530
2531 `scroll_to`'s config overrides.
2532
2533 - `defer_loading: optional boolean or null`
2534
2535 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2536
2537 - `enabled: optional boolean or null`
2538
2539 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.
2540
2541 - `switch_tab: optional BetaBrowserSwitchTabConfig or null`
2542
2543 `switch_tab`'s config overrides.
2544
2545 - `defer_loading: optional boolean or null`
2546
2547 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2548
2549 - `enabled: optional boolean or null`
2550
2551 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.
2552
2553 - `triple_click: optional BetaBrowserTripleClickConfig or null`
2554
2555 `triple_click`'s config overrides.
2556
2557 - `defer_loading: optional boolean or null`
2558
2559 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2560
2561 - `enabled: optional boolean or null`
2562
2563 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.
2564
2565 - `wait: optional BetaBrowserWaitConfig or null`
2566
2567 `wait`'s config overrides.
2568
2569 - `defer_loading: optional boolean or null`
2570
2571 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2572
2573 - `enabled: optional boolean or null`
2574
2575 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.
2576
2577 - `zoom: optional BetaBrowserZoomConfig or null`
2578
2579 `zoom`'s config overrides.
2580
2581 - `defer_loading: optional boolean or null`
2582
2583 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2584
2585 - `enabled: optional boolean or null`
2586
2587 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.
2588
25893984 - `BetaToolComputerUse20241022 object`
25903985
2591 - `type: "computer_20241022"`
2592
2593 - `display_height_px: number`
2594
2595 The height of the display in pixels.
2596
2597 minimum: 1
2598
2599 - `display_width_px: number`
2600
2601 The width of the display in pixels.
2602
2603 minimum: 1
2604
2605 - `name: "computer"`
2606
2607 Name of the tool.
2608
2609 This is how the tool will be called by the model and in `tool_use` blocks.
2610
2611 - `allowed_callers: optional array of "direct" or "code_execution_20250825" or "code_execution_20260120" or "code_execution_20260521"`
2612
2613 - `"direct"`
2614
2615 - `"code_execution_20250825"`
2616
2617 - `"code_execution_20260120"`
2618
2619 - `"code_execution_20260521"`
2620
2621 - `cache_control: optional BetaCacheControlEphemeral or null`
2622
2623 Create a cache control breakpoint at this content block.
2624
2625 - `defer_loading: optional boolean`
2626
2627 If true, tool will not be included in initial system prompt. Only loaded when returned via tool_reference from tool search.
2628
2629 - `display_number: optional number or null`
2630
2631 The X11 display number (e.g. 0, 1) for the display.
2632
2633 minimum: 0
2634
2635 - `input_examples: optional array of map[unknown]`
2636
2637 - `strict: optional boolean`
2638
2639 When true, guarantees schema validation on tool names and inputs
2640
26413986 - `BetaMemoryTool20250818 object`
26423987
2643 - `type: "memory_20250818"`
2644
2645 - `name: "memory"`
2646
2647 Name of the tool.
2648
2649 This is how the tool will be called by the model and in `tool_use` blocks.
2650
2651 - `allowed_callers: optional array of "direct" or "code_execution_20250825" or "code_execution_20260120" or "code_execution_20260521"`
2652
2653 - `"direct"`
2654
2655 - `"code_execution_20250825"`
2656
2657 - `"code_execution_20260120"`
2658
2659 - `"code_execution_20260521"`
2660
2661 - `cache_control: optional BetaCacheControlEphemeral or null`
2662
2663 Create a cache control breakpoint at this content block.
2664
2665 - `defer_loading: optional boolean`
2666
2667 If true, tool will not be included in initial system prompt. Only loaded when returned via tool_reference from tool search.
2668
2669 - `input_examples: optional array of map[unknown]`
2670
2671 - `strict: optional boolean`
2672
2673 When true, guarantees schema validation on tool names and inputs
2674
26753988 - `BetaToolComputerUse20250124 object`
26763989
2677 - `type: "computer_20250124"`
2678
2679 - `display_height_px: number`
2680
2681 The height of the display in pixels.
2682
2683 minimum: 1
2684
2685 - `display_width_px: number`
2686
2687 The width of the display in pixels.
2688
2689 minimum: 1
2690
2691 - `name: "computer"`
2692
2693 Name of the tool.
2694
2695 This is how the tool will be called by the model and in `tool_use` blocks.
2696
2697 - `allowed_callers: optional array of "direct" or "code_execution_20250825" or "code_execution_20260120" or "code_execution_20260521"`
2698
2699 - `"direct"`
2700
2701 - `"code_execution_20250825"`
2702
2703 - `"code_execution_20260120"`
2704
2705 - `"code_execution_20260521"`
2706
2707 - `cache_control: optional BetaCacheControlEphemeral or null`
2708
2709 Create a cache control breakpoint at this content block.
2710
2711 - `defer_loading: optional boolean`
2712
2713 If true, tool will not be included in initial system prompt. Only loaded when returned via tool_reference from tool search.
2714
2715 - `display_number: optional number or null`
2716
2717 The X11 display number (e.g. 0, 1) for the display.
2718
2719 minimum: 0
2720
2721 - `input_examples: optional array of map[unknown]`
2722
2723 - `strict: optional boolean`
2724
2725 When true, guarantees schema validation on tool names and inputs
2726
27273990 - `BetaToolTextEditor20241022 object`
27283991
2729 - `type: "text_editor_20241022"`
2730
2731 - `name: "str_replace_editor"`
2732
2733 Name of the tool.
2734
2735 This is how the tool will be called by the model and in `tool_use` blocks.
2736
2737 - `allowed_callers: optional array of "direct" or "code_execution_20250825" or "code_execution_20260120" or "code_execution_20260521"`
2738
2739 - `"direct"`
2740
2741 - `"code_execution_20250825"`
2742
2743 - `"code_execution_20260120"`
2744
2745 - `"code_execution_20260521"`
2746
2747 - `cache_control: optional BetaCacheControlEphemeral or null`
2748
2749 Create a cache control breakpoint at this content block.
2750
2751 - `defer_loading: optional boolean`
2752
2753 If true, tool will not be included in initial system prompt. Only loaded when returned via tool_reference from tool search.
2754
2755 - `input_examples: optional array of map[unknown]`
2756
2757 - `strict: optional boolean`
2758
2759 When true, guarantees schema validation on tool names and inputs
2760
27613992 - `BetaToolComputerUse20251124 object`
2762
2763 - `type: "computer_20251124"`
2764
2765 - `display_height_px: number`
2766
2767 The height of the display in pixels.
2768
2769 minimum: 1
2770
2771 - `display_width_px: number`
2772
2773 The width of the display in pixels.
2774
2775 minimum: 1
2776
2777 - `name: "computer"`
2778
2779 Name of the tool.
2780
2781 This is how the tool will be called by the model and in `tool_use` blocks.
2782
2783 - `allowed_callers: optional array of "direct" or "code_execution_20250825" or "code_execution_20260120" or "code_execution_20260521"`
2784
2785 - `"direct"`
2786
2787 - `"code_execution_20250825"`
2788
2789 - `"code_execution_20260120"`
2790
2791 - `"code_execution_20260521"`
2792
2793 - `cache_control: optional BetaCacheControlEphemeral or null`
2794
2795 Create a cache control breakpoint at this content block.
2796
2797 - `defer_loading: optional boolean`
2798
2799 If true, tool will not be included in initial system prompt. Only loaded when returned via tool_reference from tool search.
2800
2801 - `display_number: optional number or null`
2802
2803 The X11 display number (e.g. 0, 1) for the display.
2804
2805 minimum: 0
2806
2807 - `enable_zoom: optional boolean`
2808
2809 Whether to enable an action to take a zoomed-in screenshot of the screen.
2810
2811 - `input_examples: optional array of map[unknown]`
2812
2813 - `strict: optional boolean`
2814
2815 When true, guarantees schema validation on tool names and inputs
28163993
28173994 - `BetaComputerToolset20260801 object`
28183995
from line 4002
28254002 `type`, `configs`, and `cache_control`; zoom is controlled
28264003 via `configs.zoom.enabled`.
28274004
2828 - `type: "computer_toolset_20260801"`
2829
2830 - `cache_control: optional BetaCacheControlEphemeral or null`
2831
2832 Create a cache control breakpoint at this content block.
2833
2834 - `configs: optional BetaComputerToolsetConfigs or null`
2835
2836 Per-member configuration for `computer_toolset_20260801`: one
2837 optional field per member tool, keyed by the member name — the same
2838 name the member's `tool_use` blocks carry. Every member is an
2839 accepted key, and a member's defaults apply wherever its key is
2840 absent. Unknown keys are rejected: the field set is this toolset
2841 version's complete member set.
2842
2843 - `type: optional BetaComputerTypeConfig or null`
2844
2845 `type`'s config overrides.
2846
2847 - `defer_loading: optional boolean or null`
2848
2849 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2850
2851 - `enabled: optional boolean or null`
2852
2853 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.
2854
2855 - `cursor_position: optional BetaComputerCursorPositionConfig or null`
2856
2857 `cursor_position`'s config overrides.
2858
2859 - `defer_loading: optional boolean or null`
2860
2861 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2862
2863 - `enabled: optional boolean or null`
2864
2865 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.
2866
2867 - `double_click: optional BetaComputerDoubleClickConfig or null`
2868
2869 `double_click`'s config overrides.
2870
2871 - `defer_loading: optional boolean or null`
2872
2873 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2874
2875 - `enabled: optional boolean or null`
2876
2877 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.
2878
2879 - `hold_key: optional BetaComputerHoldKeyConfig or null`
2880
2881 `hold_key`'s config overrides.
2882
2883 - `defer_loading: optional boolean or null`
2884
2885 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2886
2887 - `enabled: optional boolean or null`
2888
2889 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.
2890
2891 - `key: optional BetaComputerKeyConfig or null`
2892
2893 `key`'s config overrides.
2894
2895 - `defer_loading: optional boolean or null`
2896
2897 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2898
2899 - `enabled: optional boolean or null`
2900
2901 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.
2902
2903 - `left_click: optional BetaComputerLeftClickConfig or null`
2904
2905 `left_click`'s config overrides.
2906
2907 - `defer_loading: optional boolean or null`
2908
2909 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2910
2911 - `enabled: optional boolean or null`
2912
2913 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.
2914
2915 - `left_click_drag: optional BetaComputerLeftClickDragConfig or null`
2916
2917 `left_click_drag`'s config overrides.
2918
2919 - `defer_loading: optional boolean or null`
2920
2921 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2922
2923 - `enabled: optional boolean or null`
2924
2925 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.
2926
2927 - `left_mouse_down: optional BetaComputerLeftMouseDownConfig or null`
2928
2929 `left_mouse_down`'s config overrides.
2930
2931 - `defer_loading: optional boolean or null`
2932
2933 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2934
2935 - `enabled: optional boolean or null`
2936
2937 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.
2938
2939 - `left_mouse_up: optional BetaComputerLeftMouseUpConfig or null`
2940
2941 `left_mouse_up`'s config overrides.
2942
2943 - `defer_loading: optional boolean or null`
2944
2945 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2946
2947 - `enabled: optional boolean or null`
2948
2949 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.
2950
2951 - `middle_click: optional BetaComputerMiddleClickConfig or null`
2952
2953 `middle_click`'s config overrides.
2954
2955 - `defer_loading: optional boolean or null`
2956
2957 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2958
2959 - `enabled: optional boolean or null`
2960
2961 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.
2962
2963 - `mouse_move: optional BetaComputerMouseMoveConfig or null`
2964
2965 `mouse_move`'s config overrides.
2966
2967 - `defer_loading: optional boolean or null`
2968
2969 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2970
2971 - `enabled: optional boolean or null`
2972
2973 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.
2974
2975 - `right_click: optional BetaComputerRightClickConfig or null`
2976
2977 `right_click`'s config overrides.
2978
2979 - `defer_loading: optional boolean or null`
2980
2981 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2982
2983 - `enabled: optional boolean or null`
2984
2985 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.
2986
2987 - `screenshot: optional BetaComputerScreenshotConfig or null`
2988
2989 `screenshot`'s config overrides.
2990
2991 - `defer_loading: optional boolean or null`
2992
2993 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
2994
2995 - `enabled: optional boolean or null`
2996
2997 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.
2998
2999 - `scroll: optional BetaComputerScrollConfig or null`
3000
3001 `scroll`'s config overrides.
3002
3003 - `defer_loading: optional boolean or null`
3004
3005 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
3006
3007 - `enabled: optional boolean or null`
3008
3009 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.
3010
3011 - `triple_click: optional BetaComputerTripleClickConfig or null`
3012
3013 `triple_click`'s config overrides.
3014
3015 - `defer_loading: optional boolean or null`
3016
3017 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
3018
3019 - `enabled: optional boolean or null`
3020
3021 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.
3022
3023 - `wait: optional BetaComputerWaitConfig or null`
3024
3025 `wait`'s config overrides.
3026
3027 - `defer_loading: optional boolean or null`
3028
3029 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
3030
3031 - `enabled: optional boolean or null`
3032
3033 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.
3034
3035 - `zoom: optional BetaComputerZoomConfig or null`
3036
3037 `zoom`'s config overrides.
3038
3039 - `defer_loading: optional boolean or null`
3040
3041 Defer loading for this member. Must resolve to the same value on every enabled member of the toolset.
3042
3043 - `enabled: optional boolean or null`
3044
3045 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.
3046
30474005 - `BetaToolTextEditor20250124 object`
30484006
3049 - `type: "text_editor_20250124"`
3050
3051 - `name: "str_replace_editor"`
3052
3053 Name of the tool.
3054
3055 This is how the tool will be called by the model and in `tool_use` blocks.
3056
3057 - `allowed_callers: optional array of "direct" or "code_execution_20250825" or "code_execution_20260120" or "code_execution_20260521"`
3058
3059 - `"direct"`
3060
3061 - `"code_execution_20250825"`
3062
3063 - `"code_execution_20260120"`
3064
3065 - `"code_execution_20260521"`
3066
3067 - `cache_control: optional BetaCacheControlEphemeral or null`
3068
3069 Create a cache control breakpoint at this content block.
3070
3071 - `defer_loading: optional boolean`
3072
3073 If true, tool will not be included in initial system prompt. Only loaded when returned via tool_reference from tool search.
3074
3075 - `input_examples: optional array of map[unknown]`
3076
3077 - `strict: optional boolean`
3078
3079 When true, guarantees schema validation on tool names and inputs
3080
30814007 - `BetaToolTextEditor20250429 object`
30824008
3083 - `type: "text_editor_20250429"`
3084
3085 - `name: "str_replace_based_edit_tool"`
3086
3087 Name of the tool.
3088
3089 This is how the tool will be called by the model and in `tool_use` blocks.
3090
3091 - `allowed_callers: optional array of "direct" or "code_execution_20250825" or "code_execution_20260120" or "code_execution_20260521"`
3092
3093 - `"direct"`
3094
3095 - `"code_execution_20250825"`
3096
3097 - `"code_execution_20260120"`
3098
3099 - `"code_execution_20260521"`
3100
3101 - `cache_control: optional BetaCacheControlEphemeral or null`
3102
3103 Create a cache control breakpoint at this content block.
3104
3105 - `defer_loading: optional boolean`
3106
3107 If true, tool will not be included in initial system prompt. Only loaded when returned via tool_reference from tool search.
3108
3109 - `input_examples: optional array of map[unknown]`
3110
3111 - `strict: optional boolean`
3112
3113 When true, guarantees schema validation on tool names and inputs
3114
31154009 - `BetaToolTextEditor20250728 object`
31164010
3117 - `type: "text_editor_20250728"`
3118
3119 - `name: "str_replace_based_edit_tool"`
3120
3121 Name of the tool.
3122
3123 This is how the tool will be called by the model and in `tool_use` blocks.
3124
3125 - `allowed_callers: optional array of "direct" or "code_execution_20250825" or "code_execution_20260120" or "code_execution_20260521"`
3126
3127 - `"direct"`
3128
3129 - `"code_execution_20250825"`
3130
3131 - `"code_execution_20260120"`
3132
3133 - `"code_execution_20260521"`
3134
3135 - `cache_control: optional BetaCacheControlEphemeral or null`
3136
3137 Create a cache control breakpoint at this content block.
3138
3139 - `defer_loading: optional boolean`
3140
3141 If true, tool will not be included in initial system prompt. Only loaded when returned via tool_reference from tool search.
3142
3143 - `input_examples: optional array of map[unknown]`
3144
3145 - `max_characters: optional number or null`
3146
3147 Maximum number of characters to display when viewing a file. If not specified, defaults to displaying the full file.
3148
3149 minimum: 1
3150
3151 - `strict: optional boolean`
3152
3153 When true, guarantees schema validation on tool names and inputs
3154
31554011 - `BetaWebSearchTool20250305 object`
31564012
3157 - `type: "web_search_20250305"`
3158
3159 - `name: "web_search"`
3160
3161 Name of the tool.
3162
3163 This is how the tool will be called by the model and in `tool_use` blocks.
3164
3165 - `allowed_callers: optional array of "direct" or "code_execution_20250825" or "code_execution_20260120" or "code_execution_20260521"`
3166
3167 - `"direct"`
3168
3169 - `"code_execution_20250825"`
3170
3171 - `"code_execution_20260120"`
3172
3173 - `"code_execution_20260521"`
3174
3175 - `allowed_domains: optional array of string or null`
3176
3177 If provided, only these domains will be included in results. Cannot be used alongside `blocked_domains`.
3178
3179 - `blocked_domains: optional array of string or null`
3180
3181 If provided, these domains will never appear in results. Cannot be used alongside `allowed_domains`.
3182
3183 - `cache_control: optional BetaCacheControlEphemeral or null`
3184
3185 Create a cache control breakpoint at this content block.
3186
3187 - `defer_loading: optional boolean`
3188
3189 If true, tool will not be included in initial system prompt. Only loaded when returned via tool_reference from tool search.
3190
3191 - `max_uses: optional number or null`
3192
3193 Maximum number of times the tool can be used in the API request.
3194
3195 exclusiveMinimum: 0
3196
3197 - `strict: optional boolean`
3198
3199 When true, guarantees schema validation on tool names and inputs
3200
3201 - `user_location: optional BetaUserLocation or null`
3202
3203 Parameters for the user's location. Used to provide more relevant search results.
3204
3205 - `type: "approximate"`
3206
3207 - `city: optional string or null`
3208
3209 The city of the user.
3210
3211 maxLength: 255, minLength: 1
3212
3213 - `country: optional string or null`
3214
3215 The two letter [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of the user.
3216
3217 maxLength: 2, minLength: 2
3218
3219 - `region: optional string or null`
3220
3221 The region of the user.
3222
3223 maxLength: 255, minLength: 1
3224
3225 - `timezone: optional string or null`
3226
3227 The [IANA timezone](https://nodatime.org/TimeZones) of the user.
3228
3229 maxLength: 255, minLength: 1
3230
32314013 - `BetaWebFetchTool20250910 object`
32324014
3233 - `type: "web_fetch_20250910"`
3234
3235 - `name: "web_fetch"`
3236
3237 Name of the tool.
3238
3239 This is how the tool will be called by the model and in `tool_use` blocks.
3240
3241 - `allowed_callers: optional array of "direct" or "code_execution_20250825" or "code_execution_20260120" or "code_execution_20260521"`
3242
3243 - `"direct"`
3244
3245 - `"code_execution_20250825"`
3246
3247 - `"code_execution_20260120"`
3248
3249 - `"code_execution_20260521"`
3250
3251 - `allowed_domains: optional array of string or null`
3252
3253 List of domains to allow fetching from
3254
3255 - `blocked_domains: optional array of string or null`
3256
3257 List of domains to block fetching from
3258
3259 - `cache_control: optional BetaCacheControlEphemeral or null`
3260
3261 Create a cache control breakpoint at this content block.
3262
3263 - `citations: optional BetaCitationsConfigParam or null`
3264
3265 Citations configuration for fetched documents. Citations are disabled by default.
3266
3267 - `defer_loading: optional boolean`
3268
3269 If true, tool will not be included in initial system prompt. Only loaded when returned via tool_reference from tool search.
3270
3271 - `max_content_tokens: optional number or null`
3272
3273 Maximum number of tokens used by including web page text content in the context. The limit is approximate and does not apply to binary content such as PDFs.
3274
3275 exclusiveMinimum: 0
3276
3277 - `max_uses: optional number or null`
3278
3279 Maximum number of times the tool can be used in the API request.
3280
3281 exclusiveMinimum: 0
3282
3283 - `strict: optional boolean`
3284
3285 When true, guarantees schema validation on tool names and inputs
3286
3287 - `url_sources: optional BetaWebFetchURLSources or null`
3288
3289 Which sources contribute to the set of URLs web fetch may fetch.
3290
3291 Each key is a tagged variant: `user_input` is `all` or `none`; the
3292 two tool filters are `all`, `none`, `only` (only the named tools'
3293 results) or `except` (every result but the named tools'). A named tool
3294 must be declared in this request's `tools[]`.
3295
3296 - `client_tool_results: optional BetaWebFetchURLSourceAll or BetaWebFetchURLSourceNone or BetaWebFetchURLSourceOnly or BetaWebFetchURLSourceExcept`
3297
3298 Which client tools' results contribute fetchable URLs: "all", "none", or an only or except list of client tool names from tools[].
3299
3300 - `BetaWebFetchURLSourceAll object`
3301
3302 The `url_sources` variant under which a source contributes in
3303 full: every result of the tool filter's source, or all user input.
3304
3305 - `type: "all"`
3306
3307 - `BetaWebFetchURLSourceNone object`
3308
3309 The `url_sources` variant under which a source contributes nothing:
3310 no result of the tool filter's source, or no user input.
3311
3312 - `type: "none"`
3313
3314 - `BetaWebFetchURLSourceOnly object`
3315
3316 The tool filter variant under which only the named tools' results
3317 contribute.
3318
3319 - `type: "only"`
3320
3321 - `tools: array of BetaWebFetchURLSourceToolReference`
3322
3323 - `type: "tool_reference"`
3324
3325 - `name: string`
3326
3327 - `BetaWebFetchURLSourceExcept object`
3328
3329 The tool filter variant under which every result but the named
3330 tools' contributes.
3331
3332 - `type: "except"`
3333
3334 - `tools: array of BetaWebFetchURLSourceToolReference`
3335
3336 - `type: "tool_reference"`
3337
3338 - `name: string`
3339
3340 - `server_tool_results: optional BetaWebFetchURLSourceAll or BetaWebFetchURLSourceNone or BetaWebFetchURLSourceOnly or BetaWebFetchURLSourceExcept`
3341
3342 Which server tools' results contribute fetchable URLs: "all", "none", or an only or except list of server tool names from tools[]; only web_search and web_fetch results ever contribute.
3343
3344 - `BetaWebFetchURLSourceAll object`
3345
3346 The `url_sources` variant under which a source contributes in
3347 full: every result of the tool filter's source, or all user input.
3348
3349 - `BetaWebFetchURLSourceNone object`
3350
3351 The `url_sources` variant under which a source contributes nothing:
3352 no result of the tool filter's source, or no user input.
3353
3354 - `BetaWebFetchURLSourceOnly object`
3355
3356 The tool filter variant under which only the named tools' results
3357 contribute.
3358
3359 - `BetaWebFetchURLSourceExcept object`
3360
3361 The tool filter variant under which every result but the named
3362 tools' contributes.
3363
3364 - `user_input: optional BetaWebFetchURLSourceAll or BetaWebFetchURLSourceNone`
3365
3366 Whether URLs in user messages are fetchable: "all" or "none".
3367
3368 - `BetaWebFetchURLSourceAll object`
3369
3370 The `url_sources` variant under which a source contributes in
3371 full: every result of the tool filter's source, or all user input.
3372
3373 - `BetaWebFetchURLSourceNone object`
3374
3375 The `url_sources` variant under which a source contributes nothing:
3376 no result of the tool filter's source, or no user input.
3377
33784015 - `BetaWebSearchTool20260209 object`
33794016
3380 - `type: "web_search_20260209"`
3381
3382 - `name: "web_search"`
3383
3384 Name of the tool.
3385
3386 This is how the tool will be called by the model and in `tool_use` blocks.
3387
3388 - `allowed_callers: optional array of "direct" or "code_execution_20250825" or "code_execution_20260120" or "code_execution_20260521"`
3389
3390 - `"direct"`
3391
3392 - `"code_execution_20250825"`
3393
3394 - `"code_execution_20260120"`
3395
3396 - `"code_execution_20260521"`
3397
3398 - `allowed_domains: optional array of string or null`
3399
3400 If provided, only these domains will be included in results. Cannot be used alongside `blocked_domains`.
3401
3402 - `blocked_domains: optional array of string or null`
3403
3404 If provided, these domains will never appear in results. Cannot be used alongside `allowed_domains`.
3405
3406 - `cache_control: optional BetaCacheControlEphemeral or null`
3407
3408 Create a cache control breakpoint at this content block.
3409
3410 - `defer_loading: optional boolean`
3411
3412 If true, tool will not be included in initial system prompt. Only loaded when returned via tool_reference from tool search.
3413
3414 - `max_uses: optional number or null`
3415
3416 Maximum number of times the tool can be used in the API request.
3417
3418 exclusiveMinimum: 0
3419
3420 - `strict: optional boolean`
3421
3422 When true, guarantees schema validation on tool names and inputs
3423
3424 - `user_location: optional BetaUserLocation or null`
3425
3426 Parameters for the user's location. Used to provide more relevant search results.
3427
34284017 - `BetaWebFetchTool20260209 object`
34294018
3430 - `type: "web_fetch_20260209"`
3431
3432 - `name: "web_fetch"`
3433
3434 Name of the tool.
3435
3436 This is how the tool will be called by the model and in `tool_use` blocks.
3437
3438 - `allowed_callers: optional array of "direct" or "code_execution_20250825" or "code_execution_20260120" or "code_execution_20260521"`
3439
3440 - `"direct"`
3441
3442 - `"code_execution_20250825"`
3443
3444 - `"code_execution_20260120"`
3445
3446 - `"code_execution_20260521"`
3447
3448 - `allowed_domains: optional array of string or null`
3449
3450 List of domains to allow fetching from
3451
3452 - `blocked_domains: optional array of string or null`
3453
3454 List of domains to block fetching from
3455
3456 - `cache_control: optional BetaCacheControlEphemeral or null`
3457
3458 Create a cache control breakpoint at this content block.
3459
3460 - `citations: optional BetaCitationsConfigParam or null`
3461
3462 Citations configuration for fetched documents. Citations are disabled by default.
3463
3464 - `defer_loading: optional boolean`
3465
3466 If true, tool will not be included in initial system prompt. Only loaded when returned via tool_reference from tool search.
3467
3468 - `max_content_tokens: optional number or null`
3469
3470 Maximum number of tokens used by including web page text content in the context. The limit is approximate and does not apply to binary content such as PDFs.
3471
3472 exclusiveMinimum: 0
3473
3474 - `max_uses: optional number or null`
3475
3476 Maximum number of times the tool can be used in the API request.
3477
3478 exclusiveMinimum: 0
3479
3480 - `strict: optional boolean`
3481
3482 When true, guarantees schema validation on tool names and inputs
3483
3484 - `url_sources: optional BetaWebFetchURLSources or null`
3485
3486 Which sources contribute to the set of URLs web fetch may fetch.
3487
3488 Each key is a tagged variant: `user_input` is `all` or `none`; the
3489 two tool filters are `all`, `none`, `only` (only the named tools'
3490 results) or `except` (every result but the named tools'). A named tool
3491 must be declared in this request's `tools[]`.
3492
34934019 - `BetaWebFetchTool20260309 object`
34944020
34954021 Web fetch tool with use_cache parameter for bypassing cached content.
34964022
3497 - `type: "web_fetch_20260309"`
3498
3499 - `name: "web_fetch"`
3500
3501 Name of the tool.
3502
3503 This is how the tool will be called by the model and in `tool_use` blocks.
3504
3505 - `allowed_callers: optional array of "direct" or "code_execution_20250825" or "code_execution_20260120" or "code_execution_20260521"`
3506
3507 - `"direct"`
3508
3509 - `"code_execution_20250825"`
3510
3511 - `"code_execution_20260120"`
3512
3513 - `"code_execution_20260521"`
3514
3515 - `allowed_domains: optional array of string or null`
3516
3517 List of domains to allow fetching from
3518
3519 - `blocked_domains: optional array of string or null`
3520
3521 List of domains to block fetching from
3522
3523 - `cache_control: optional BetaCacheControlEphemeral or null`
3524
3525 Create a cache control breakpoint at this content block.
3526
3527 - `citations: optional BetaCitationsConfigParam or null`
3528
3529 Citations configuration for fetched documents. Citations are disabled by default.
3530
3531 - `defer_loading: optional boolean`
3532
3533 If true, tool will not be included in initial system prompt. Only loaded when returned via tool_reference from tool search.
3534
3535 - `max_content_tokens: optional number or null`
3536
3537 Maximum number of tokens used by including web page text content in the context. The limit is approximate and does not apply to binary content such as PDFs.
3538
3539 exclusiveMinimum: 0
3540
3541 - `max_uses: optional number or null`
3542
3543 Maximum number of times the tool can be used in the API request.
3544
3545 exclusiveMinimum: 0
3546
3547 - `strict: optional boolean`
3548
3549 When true, guarantees schema validation on tool names and inputs
3550
3551 - `url_sources: optional BetaWebFetchURLSources or null`
3552
3553 Which sources contribute to the set of URLs web fetch may fetch.
3554
3555 Each key is a tagged variant: `user_input` is `all` or `none`; the
3556 two tool filters are `all`, `none`, `only` (only the named tools'
3557 results) or `except` (every result but the named tools'). A named tool
3558 must be declared in this request's `tools[]`.
3559
3560 - `use_cache: optional boolean`
3561
3562 Whether to use cached content. Set to false to bypass the cache and fetch fresh content. Only set to false when the user explicitly requests fresh content or when fetching rapidly-changing sources.
3563
35644023 - `BetaWebSearchTool20260318 object`
35654024
3566 - `type: "web_search_20260318"`
3567
3568 - `name: "web_search"`
3569
3570 Name of the tool.
3571
3572 This is how the tool will be called by the model and in `tool_use` blocks.
3573
3574 - `allowed_callers: optional array of "direct" or "code_execution_20250825" or "code_execution_20260120" or "code_execution_20260521"`
3575
3576 - `"direct"`
3577
3578 - `"code_execution_20250825"`
3579
3580 - `"code_execution_20260120"`
3581
3582 - `"code_execution_20260521"`
3583
3584 - `allowed_domains: optional array of string or null`
3585
3586 If provided, only these domains will be included in results. Cannot be used alongside `blocked_domains`.
3587
3588 - `blocked_domains: optional array of string or null`
3589
3590 If provided, these domains will never appear in results. Cannot be used alongside `allowed_domains`.
3591
3592 - `cache_control: optional BetaCacheControlEphemeral or null`
3593
3594 Create a cache control breakpoint at this content block.
3595
3596 - `defer_loading: optional boolean`
3597
3598 If true, tool will not be included in initial system prompt. Only loaded when returned via tool_reference from tool search.
3599
3600 - `max_uses: optional number or null`
3601
3602 Maximum number of times the tool can be used in the API request.
3603
3604 exclusiveMinimum: 0
3605
3606 - `response_inclusion: optional "full" or "excluded"`
3607
3608 How this tool's result blocks appear in the API response when the result was consumed by a completed code_execution call in the same turn. 'full' returns the complete content (default). 'excluded' drops the nested server_tool_use and result block pair entirely. Results from direct calls, or from code_execution calls that paused before completing, are always returned in full so they can be sent back on the next turn.
3609
3610 - `"full"`
3611
3612 - `"excluded"`
3613
3614 - `strict: optional boolean`
3615
3616 When true, guarantees schema validation on tool names and inputs
3617
3618 - `user_location: optional BetaUserLocation or null`
3619
3620 Parameters for the user's location. Used to provide more relevant search results.
3621
36224025 - `BetaWebFetchTool20260318 object`
36234026
3624 - `type: "web_fetch_20260318"`
3625
3626 - `name: "web_fetch"`
3627
3628 Name of the tool.
3629
3630 This is how the tool will be called by the model and in `tool_use` blocks.
3631
3632 - `allowed_callers: optional array of "direct" or "code_execution_20250825" or "code_execution_20260120" or "code_execution_20260521"`
3633
3634 - `"direct"`
3635
3636 - `"code_execution_20250825"`
3637
3638 - `"code_execution_20260120"`
3639
3640 - `"code_execution_20260521"`
3641
3642 - `allowed_domains: optional array of string or null`
3643
3644 List of domains to allow fetching from
3645
3646 - `blocked_domains: optional array of string or null`
3647
3648 List of domains to block fetching from
3649
3650 - `cache_control: optional BetaCacheControlEphemeral or null`
3651
3652 Create a cache control breakpoint at this content block.
3653
3654 - `citations: optional BetaCitationsConfigParam or null`
3655
3656 Citations configuration for fetched documents. Citations are disabled by default.
3657
3658 - `defer_loading: optional boolean`
3659
3660 If true, tool will not be included in initial system prompt. Only loaded when returned via tool_reference from tool search.
3661
3662 - `max_content_tokens: optional number or null`
3663
3664 Maximum number of tokens used by including web page text content in the context. The limit is approximate and does not apply to binary content such as PDFs.
3665
3666 exclusiveMinimum: 0
3667
3668 - `max_uses: optional number or null`
3669
3670 Maximum number of times the tool can be used in the API request.
3671
3672 exclusiveMinimum: 0
3673
3674 - `response_inclusion: optional "full" or "excluded"`
3675
3676 How this tool's result blocks appear in the API response when the result was consumed by a completed code_execution call in the same turn. 'full' returns the complete content (default). 'excluded' drops the nested server_tool_use and result block pair entirely. Results from direct calls, or from code_execution calls that paused before completing, are always returned in full so they can be sent back on the next turn.
3677
3678 - `"full"`
3679
3680 - `"excluded"`
3681
3682 - `strict: optional boolean`
3683
3684 When true, guarantees schema validation on tool names and inputs
3685
3686 - `url_sources: optional BetaWebFetchURLSources or null`
3687
3688 Which sources contribute to the set of URLs web fetch may fetch.
3689
3690 Each key is a tagged variant: `user_input` is `all` or `none`; the
3691 two tool filters are `all`, `none`, `only` (only the named tools'
3692 results) or `except` (every result but the named tools'). A named tool
3693 must be declared in this request's `tools[]`.
3694
3695 - `use_cache: optional boolean`
3696
3697 Whether to use cached content. Set to false to bypass the cache and fetch fresh content. Only set to false when the user explicitly requests fresh content or when fetching rapidly-changing sources.
3698
36994027 - `BetaAdvisorTool20260301 object`
37004028
3701 - `type: "advisor_20260301"`
3702
3703 - `model: Model`
3704
3705 The model that will complete your prompt.
3706
3707 See [models](https://docs.anthropic.com/en/docs/models-overview) for additional details and options.
3708
3709 - `name: "advisor"`
3710
3711 Name of the tool.
3712
3713 This is how the tool will be called by the model and in `tool_use` blocks.
3714
3715 - `allowed_callers: optional array of "direct" or "code_execution_20250825" or "code_execution_20260120" or "code_execution_20260521"`
3716
3717 - `"direct"`
3718
3719 - `"code_execution_20250825"`
3720
3721 - `"code_execution_20260120"`
3722
3723 - `"code_execution_20260521"`
3724
3725 - `cache_control: optional BetaCacheControlEphemeral or null`
3726
3727 Create a cache control breakpoint at this content block.
3728
3729 - `caching: optional BetaCacheControlEphemeral or null`
3730
3731 Caching for the advisor's own prompt. When set, each advisor call writes a cache entry at the given TTL so subsequent calls in the same conversation read the stable prefix. When omitted, the advisor prompt is not cached.
3732
3733 - `defer_loading: optional boolean`
3734
3735 If true, tool will not be included in initial system prompt. Only loaded when returned via tool_reference from tool search.
3736
3737 - `max_tokens: optional number or null`
3738
3739 Bounds the advisor's total output (thinking + text) per call. When the advisor hits this cap, the returned advisor_result or advisor_redacted_result block carries stop_reason='max_tokens', and a truncation note is appended to the advice text the worker model sees (inside the encrypted blob in redacted mode). When set, the server also emits a remaining-tokens budget block in the advisor's prompt so the advisor self-shapes toward the cap. When omitted, the advisor model's default output cap applies and no budget block is emitted.
3740
3741 minimum: 1024
3742
3743 - `max_uses: optional number or null`
3744
3745 Maximum number of times the tool can be used in the API request.
3746
3747 exclusiveMinimum: 0
3748
3749 - `strict: optional boolean`
3750
3751 When true, guarantees schema validation on tool names and inputs
3752
37534029 - `BetaToolSearchToolBm25_20251119 object`
37544030
3755 - `type: "tool_search_tool_bm25_20251119" or "tool_search_tool_bm25"`
3756
3757 - `"tool_search_tool_bm25_20251119"`
3758
3759 - `"tool_search_tool_bm25"`
3760
3761 - `name: "tool_search_tool_bm25"`
3762
3763 Name of the tool.
3764
3765 This is how the tool will be called by the model and in `tool_use` blocks.
3766
3767 - `allowed_callers: optional array of "direct" or "code_execution_20250825" or "code_execution_20260120" or "code_execution_20260521"`
3768
3769 - `"direct"`
3770
3771 - `"code_execution_20250825"`
3772
3773 - `"code_execution_20260120"`
3774
3775 - `"code_execution_20260521"`
3776
3777 - `cache_control: optional BetaCacheControlEphemeral or null`
3778
3779 Create a cache control breakpoint at this content block.
3780
3781 - `defer_loading: optional boolean`
3782
3783 If true, tool will not be included in initial system prompt. Only loaded when returned via tool_reference from tool search.
3784
3785 - `strict: optional boolean`
3786
3787 When true, guarantees schema validation on tool names and inputs
3788
37894031 - `BetaToolSearchToolRegex20251119 object`
3790
3791 - `type: "tool_search_tool_regex_20251119" or "tool_search_tool_regex"`
3792
3793 - `"tool_search_tool_regex_20251119"`
3794
3795 - `"tool_search_tool_regex"`
3796
3797 - `name: "tool_search_tool_regex"`
3798
3799 Name of the tool.
3800
3801 This is how the tool will be called by the model and in `tool_use` blocks.
3802
3803 - `allowed_callers: optional array of "direct" or "code_execution_20250825" or "code_execution_20260120" or "code_execution_20260521"`
3804
3805 - `"direct"`
3806
3807 - `"code_execution_20250825"`
3808
3809 - `"code_execution_20260120"`
3810
3811 - `"code_execution_20260521"`
3812
3813 - `cache_control: optional BetaCacheControlEphemeral or null`
3814
3815 Create a cache control breakpoint at this content block.
3816
3817 - `defer_loading: optional boolean`
3818
3819 If true, tool will not be included in initial system prompt. Only loaded when returned via tool_reference from tool search.
3820
3821 - `strict: optional boolean`
3822
3823 When true, guarantees schema validation on tool names and inputs
38244032
38254033 - `BetaMCPToolset object`
38264034
from line 4036
38284036
38294037 Allows configuring enabled status and defer_loading for all tools
38304038 from an MCP server, with optional per-tool overrides.
3831
3832 - `type: "mcp_toolset"`
3833
3834 - `mcp_server_name: string`
3835
3836 Name of the MCP server to configure tools for
3837
3838 maxLength: 255, minLength: 1
3839
3840 - `cache_control: optional BetaCacheControlEphemeral or null`
3841
3842 Create a cache control breakpoint at this content block.
3843
3844 - `configs: optional map[BetaMCPToolConfig] or null`
3845
3846 Configuration overrides for specific tools, keyed by tool name
3847
3848 - `defer_loading: optional boolean`
3849
3850 - `enabled: optional boolean`
3851
3852 - `default_config: optional BetaMCPToolDefaultConfig`
3853
3854 Default configuration applied to all tools from this server
3855
3856 - `defer_loading: optional boolean`
3857
3858 - `enabled: optional boolean`
38594039
38604040- `output_format: optional BetaJSONOutputFormat or null`
38614041
38624042