@ai-sdk/anthropic 4.0.54 → 4.0.55

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1391,14 +1391,14 @@ var textEditor_20250728 = (args = {}) => {
1391
1391
  return factory2(args);
1392
1392
  };
1393
1393
 
1394
- // src/tool/web-search_20260209.ts
1394
+ // src/tool/web-search_20260318.ts
1395
1395
  import {
1396
1396
  createProviderExecutedToolFactory as createProviderExecutedToolFactory2,
1397
1397
  lazySchema as lazySchema6,
1398
1398
  zodSchema as zodSchema6
1399
1399
  } from "@ai-sdk/provider-utils";
1400
1400
  import { z as z7 } from "zod/v4";
1401
- var webSearch_20260209ArgsSchema = lazySchema6(
1401
+ var webSearch_20260318ArgsSchema = lazySchema6(
1402
1402
  () => zodSchema6(
1403
1403
  z7.object({
1404
1404
  maxUses: z7.number().optional(),
@@ -1410,11 +1410,12 @@ var webSearch_20260209ArgsSchema = lazySchema6(
1410
1410
  region: z7.string().optional(),
1411
1411
  country: z7.string().optional(),
1412
1412
  timezone: z7.string().optional()
1413
- }).optional()
1413
+ }).optional(),
1414
+ responseInclusion: z7.enum(["full", "excluded"]).optional()
1414
1415
  })
1415
1416
  )
1416
1417
  );
1417
- var webSearch_20260209OutputSchema = lazySchema6(
1418
+ var webSearch_20260318OutputSchema = lazySchema6(
1418
1419
  () => zodSchema6(
1419
1420
  z7.array(
1420
1421
  z7.object({
@@ -1427,7 +1428,7 @@ var webSearch_20260209OutputSchema = lazySchema6(
1427
1428
  )
1428
1429
  )
1429
1430
  );
1430
- var webSearch_20260209InputSchema = lazySchema6(
1431
+ var webSearch_20260318InputSchema = lazySchema6(
1431
1432
  () => zodSchema6(
1432
1433
  z7.object({
1433
1434
  query: z7.string()
@@ -1435,23 +1436,23 @@ var webSearch_20260209InputSchema = lazySchema6(
1435
1436
  )
1436
1437
  );
1437
1438
  var factory3 = createProviderExecutedToolFactory2({
1438
- id: "anthropic.web_search_20260209",
1439
- inputSchema: webSearch_20260209InputSchema,
1440
- outputSchema: webSearch_20260209OutputSchema,
1439
+ id: "anthropic.web_search_20260318",
1440
+ inputSchema: webSearch_20260318InputSchema,
1441
+ outputSchema: webSearch_20260318OutputSchema,
1441
1442
  supportsDeferredResults: true
1442
1443
  });
1443
- var webSearch_20260209 = (args = {}) => {
1444
+ var webSearch_20260318 = (args = {}) => {
1444
1445
  return factory3(args);
1445
1446
  };
1446
1447
 
1447
- // src/tool/web-search_20250305.ts
1448
+ // src/tool/web-search_20260209.ts
1448
1449
  import {
1449
1450
  createProviderExecutedToolFactory as createProviderExecutedToolFactory3,
1450
1451
  lazySchema as lazySchema7,
1451
1452
  zodSchema as zodSchema7
1452
1453
  } from "@ai-sdk/provider-utils";
1453
1454
  import { z as z8 } from "zod/v4";
1454
- var webSearch_20250305ArgsSchema = lazySchema7(
1455
+ var webSearch_20260209ArgsSchema = lazySchema7(
1455
1456
  () => zodSchema7(
1456
1457
  z8.object({
1457
1458
  maxUses: z8.number().optional(),
@@ -1467,7 +1468,7 @@ var webSearch_20250305ArgsSchema = lazySchema7(
1467
1468
  })
1468
1469
  )
1469
1470
  );
1470
- var webSearch_20250305OutputSchema = lazySchema7(
1471
+ var webSearch_20260209OutputSchema = lazySchema7(
1471
1472
  () => zodSchema7(
1472
1473
  z8.array(
1473
1474
  z8.object({
@@ -1480,7 +1481,7 @@ var webSearch_20250305OutputSchema = lazySchema7(
1480
1481
  )
1481
1482
  )
1482
1483
  );
1483
- var webSearch_20250305InputSchema = lazySchema7(
1484
+ var webSearch_20260209InputSchema = lazySchema7(
1484
1485
  () => zodSchema7(
1485
1486
  z8.object({
1486
1487
  query: z8.string()
@@ -1488,95 +1489,89 @@ var webSearch_20250305InputSchema = lazySchema7(
1488
1489
  )
1489
1490
  );
1490
1491
  var factory4 = createProviderExecutedToolFactory3({
1491
- id: "anthropic.web_search_20250305",
1492
- inputSchema: webSearch_20250305InputSchema,
1493
- outputSchema: webSearch_20250305OutputSchema,
1492
+ id: "anthropic.web_search_20260209",
1493
+ inputSchema: webSearch_20260209InputSchema,
1494
+ outputSchema: webSearch_20260209OutputSchema,
1494
1495
  supportsDeferredResults: true
1495
1496
  });
1496
- var webSearch_20250305 = (args = {}) => {
1497
+ var webSearch_20260209 = (args = {}) => {
1497
1498
  return factory4(args);
1498
1499
  };
1499
1500
 
1500
- // src/tool/web-fetch-20260209.ts
1501
+ // src/tool/web-search_20250305.ts
1501
1502
  import {
1502
1503
  createProviderExecutedToolFactory as createProviderExecutedToolFactory4,
1503
1504
  lazySchema as lazySchema8,
1504
1505
  zodSchema as zodSchema8
1505
1506
  } from "@ai-sdk/provider-utils";
1506
1507
  import { z as z9 } from "zod/v4";
1507
- var webFetch_20260209ArgsSchema = lazySchema8(
1508
+ var webSearch_20250305ArgsSchema = lazySchema8(
1508
1509
  () => zodSchema8(
1509
1510
  z9.object({
1510
1511
  maxUses: z9.number().optional(),
1511
1512
  allowedDomains: z9.array(z9.string()).optional(),
1512
1513
  blockedDomains: z9.array(z9.string()).optional(),
1513
- citations: z9.object({ enabled: z9.boolean() }).optional(),
1514
- maxContentTokens: z9.number().optional()
1514
+ userLocation: z9.object({
1515
+ type: z9.literal("approximate"),
1516
+ city: z9.string().optional(),
1517
+ region: z9.string().optional(),
1518
+ country: z9.string().optional(),
1519
+ timezone: z9.string().optional()
1520
+ }).optional()
1515
1521
  })
1516
1522
  )
1517
1523
  );
1518
- var webFetch_20260209OutputSchema = lazySchema8(
1524
+ var webSearch_20250305OutputSchema = lazySchema8(
1519
1525
  () => zodSchema8(
1520
- z9.object({
1521
- type: z9.literal("web_fetch_result"),
1522
- url: z9.string(),
1523
- content: z9.object({
1524
- type: z9.literal("document"),
1526
+ z9.array(
1527
+ z9.object({
1528
+ url: z9.string(),
1525
1529
  title: z9.string().nullable(),
1526
- citations: z9.object({ enabled: z9.boolean() }).optional(),
1527
- source: z9.union([
1528
- z9.object({
1529
- type: z9.literal("base64"),
1530
- mediaType: z9.literal("application/pdf"),
1531
- data: z9.string()
1532
- }),
1533
- z9.object({
1534
- type: z9.literal("text"),
1535
- mediaType: z9.literal("text/plain"),
1536
- data: z9.string()
1537
- })
1538
- ])
1539
- }),
1540
- retrievedAt: z9.string().nullable()
1541
- })
1530
+ pageAge: z9.string().nullable(),
1531
+ encryptedContent: z9.string(),
1532
+ type: z9.literal("web_search_result")
1533
+ })
1534
+ )
1542
1535
  )
1543
1536
  );
1544
- var webFetch_20260209InputSchema = lazySchema8(
1537
+ var webSearch_20250305InputSchema = lazySchema8(
1545
1538
  () => zodSchema8(
1546
1539
  z9.object({
1547
- url: z9.string()
1540
+ query: z9.string()
1548
1541
  })
1549
1542
  )
1550
1543
  );
1551
1544
  var factory5 = createProviderExecutedToolFactory4({
1552
- id: "anthropic.web_fetch_20260209",
1553
- inputSchema: webFetch_20260209InputSchema,
1554
- outputSchema: webFetch_20260209OutputSchema,
1545
+ id: "anthropic.web_search_20250305",
1546
+ inputSchema: webSearch_20250305InputSchema,
1547
+ outputSchema: webSearch_20250305OutputSchema,
1555
1548
  supportsDeferredResults: true
1556
1549
  });
1557
- var webFetch_20260209 = (args = {}) => {
1550
+ var webSearch_20250305 = (args = {}) => {
1558
1551
  return factory5(args);
1559
1552
  };
1560
1553
 
1561
- // src/tool/web-fetch-20250910.ts
1554
+ // src/tool/web-fetch-20260318.ts
1562
1555
  import {
1563
1556
  createProviderExecutedToolFactory as createProviderExecutedToolFactory5,
1564
1557
  lazySchema as lazySchema9,
1565
1558
  zodSchema as zodSchema9
1566
1559
  } from "@ai-sdk/provider-utils";
1567
1560
  import { z as z10 } from "zod/v4";
1568
- var webFetch_20250910ArgsSchema = lazySchema9(
1561
+ var webFetch_20260318ArgsSchema = lazySchema9(
1569
1562
  () => zodSchema9(
1570
1563
  z10.object({
1571
1564
  maxUses: z10.number().optional(),
1572
1565
  allowedDomains: z10.array(z10.string()).optional(),
1573
1566
  blockedDomains: z10.array(z10.string()).optional(),
1574
1567
  citations: z10.object({ enabled: z10.boolean() }).optional(),
1575
- maxContentTokens: z10.number().optional()
1568
+ maxContentTokens: z10.number().optional(),
1569
+ useCache: z10.boolean().optional(),
1570
+ responseInclusion: z10.enum(["full", "excluded"]).optional()
1576
1571
  })
1577
1572
  )
1578
1573
  );
1579
- var webFetch_20250910OutputSchema = lazySchema9(
1574
+ var webFetch_20260318OutputSchema = lazySchema9(
1580
1575
  () => zodSchema9(
1581
1576
  z10.object({
1582
1577
  type: z10.literal("web_fetch_result"),
@@ -1602,7 +1597,7 @@ var webFetch_20250910OutputSchema = lazySchema9(
1602
1597
  })
1603
1598
  )
1604
1599
  );
1605
- var webFetch_20250910InputSchema = lazySchema9(
1600
+ var webFetch_20260318InputSchema = lazySchema9(
1606
1601
  () => zodSchema9(
1607
1602
  z10.object({
1608
1603
  url: z10.string()
@@ -1610,13 +1605,135 @@ var webFetch_20250910InputSchema = lazySchema9(
1610
1605
  )
1611
1606
  );
1612
1607
  var factory6 = createProviderExecutedToolFactory5({
1608
+ id: "anthropic.web_fetch_20260318",
1609
+ inputSchema: webFetch_20260318InputSchema,
1610
+ outputSchema: webFetch_20260318OutputSchema,
1611
+ supportsDeferredResults: true
1612
+ });
1613
+ var webFetch_20260318 = (args = {}) => {
1614
+ return factory6(args);
1615
+ };
1616
+
1617
+ // src/tool/web-fetch-20260209.ts
1618
+ import {
1619
+ createProviderExecutedToolFactory as createProviderExecutedToolFactory6,
1620
+ lazySchema as lazySchema10,
1621
+ zodSchema as zodSchema10
1622
+ } from "@ai-sdk/provider-utils";
1623
+ import { z as z11 } from "zod/v4";
1624
+ var webFetch_20260209ArgsSchema = lazySchema10(
1625
+ () => zodSchema10(
1626
+ z11.object({
1627
+ maxUses: z11.number().optional(),
1628
+ allowedDomains: z11.array(z11.string()).optional(),
1629
+ blockedDomains: z11.array(z11.string()).optional(),
1630
+ citations: z11.object({ enabled: z11.boolean() }).optional(),
1631
+ maxContentTokens: z11.number().optional()
1632
+ })
1633
+ )
1634
+ );
1635
+ var webFetch_20260209OutputSchema = lazySchema10(
1636
+ () => zodSchema10(
1637
+ z11.object({
1638
+ type: z11.literal("web_fetch_result"),
1639
+ url: z11.string(),
1640
+ content: z11.object({
1641
+ type: z11.literal("document"),
1642
+ title: z11.string().nullable(),
1643
+ citations: z11.object({ enabled: z11.boolean() }).optional(),
1644
+ source: z11.union([
1645
+ z11.object({
1646
+ type: z11.literal("base64"),
1647
+ mediaType: z11.literal("application/pdf"),
1648
+ data: z11.string()
1649
+ }),
1650
+ z11.object({
1651
+ type: z11.literal("text"),
1652
+ mediaType: z11.literal("text/plain"),
1653
+ data: z11.string()
1654
+ })
1655
+ ])
1656
+ }),
1657
+ retrievedAt: z11.string().nullable()
1658
+ })
1659
+ )
1660
+ );
1661
+ var webFetch_20260209InputSchema = lazySchema10(
1662
+ () => zodSchema10(
1663
+ z11.object({
1664
+ url: z11.string()
1665
+ })
1666
+ )
1667
+ );
1668
+ var factory7 = createProviderExecutedToolFactory6({
1669
+ id: "anthropic.web_fetch_20260209",
1670
+ inputSchema: webFetch_20260209InputSchema,
1671
+ outputSchema: webFetch_20260209OutputSchema,
1672
+ supportsDeferredResults: true
1673
+ });
1674
+ var webFetch_20260209 = (args = {}) => {
1675
+ return factory7(args);
1676
+ };
1677
+
1678
+ // src/tool/web-fetch-20250910.ts
1679
+ import {
1680
+ createProviderExecutedToolFactory as createProviderExecutedToolFactory7,
1681
+ lazySchema as lazySchema11,
1682
+ zodSchema as zodSchema11
1683
+ } from "@ai-sdk/provider-utils";
1684
+ import { z as z12 } from "zod/v4";
1685
+ var webFetch_20250910ArgsSchema = lazySchema11(
1686
+ () => zodSchema11(
1687
+ z12.object({
1688
+ maxUses: z12.number().optional(),
1689
+ allowedDomains: z12.array(z12.string()).optional(),
1690
+ blockedDomains: z12.array(z12.string()).optional(),
1691
+ citations: z12.object({ enabled: z12.boolean() }).optional(),
1692
+ maxContentTokens: z12.number().optional()
1693
+ })
1694
+ )
1695
+ );
1696
+ var webFetch_20250910OutputSchema = lazySchema11(
1697
+ () => zodSchema11(
1698
+ z12.object({
1699
+ type: z12.literal("web_fetch_result"),
1700
+ url: z12.string(),
1701
+ content: z12.object({
1702
+ type: z12.literal("document"),
1703
+ title: z12.string().nullable(),
1704
+ citations: z12.object({ enabled: z12.boolean() }).optional(),
1705
+ source: z12.union([
1706
+ z12.object({
1707
+ type: z12.literal("base64"),
1708
+ mediaType: z12.literal("application/pdf"),
1709
+ data: z12.string()
1710
+ }),
1711
+ z12.object({
1712
+ type: z12.literal("text"),
1713
+ mediaType: z12.literal("text/plain"),
1714
+ data: z12.string()
1715
+ })
1716
+ ])
1717
+ }),
1718
+ retrievedAt: z12.string().nullable()
1719
+ })
1720
+ )
1721
+ );
1722
+ var webFetch_20250910InputSchema = lazySchema11(
1723
+ () => zodSchema11(
1724
+ z12.object({
1725
+ url: z12.string()
1726
+ })
1727
+ )
1728
+ );
1729
+ var factory8 = createProviderExecutedToolFactory7({
1613
1730
  id: "anthropic.web_fetch_20250910",
1614
1731
  inputSchema: webFetch_20250910InputSchema,
1615
1732
  outputSchema: webFetch_20250910OutputSchema,
1616
1733
  supportsDeferredResults: true
1617
1734
  });
1618
1735
  var webFetch_20250910 = (args = {}) => {
1619
- return factory6(args);
1736
+ return factory8(args);
1620
1737
  };
1621
1738
 
1622
1739
  // src/anthropic-prepare-tools.ts
@@ -1845,6 +1962,25 @@ async function prepareTools({
1845
1962
  });
1846
1963
  break;
1847
1964
  }
1965
+ case "anthropic.web_fetch_20260318": {
1966
+ const args = await validateTypes({
1967
+ value: tool.args,
1968
+ schema: webFetch_20260318ArgsSchema
1969
+ });
1970
+ anthropicTools2.push({
1971
+ type: "web_fetch_20260318",
1972
+ name: "web_fetch",
1973
+ max_uses: args.maxUses,
1974
+ allowed_domains: args.allowedDomains,
1975
+ blocked_domains: args.blockedDomains,
1976
+ citations: args.citations,
1977
+ max_content_tokens: args.maxContentTokens,
1978
+ use_cache: args.useCache,
1979
+ response_inclusion: args.responseInclusion,
1980
+ cache_control: void 0
1981
+ });
1982
+ break;
1983
+ }
1848
1984
  case "anthropic.web_search_20250305": {
1849
1985
  const args = await validateTypes({
1850
1986
  value: tool.args,
@@ -1878,6 +2014,23 @@ async function prepareTools({
1878
2014
  });
1879
2015
  break;
1880
2016
  }
2017
+ case "anthropic.web_search_20260318": {
2018
+ const args = await validateTypes({
2019
+ value: tool.args,
2020
+ schema: webSearch_20260318ArgsSchema
2021
+ });
2022
+ anthropicTools2.push({
2023
+ type: "web_search_20260318",
2024
+ name: "web_search",
2025
+ max_uses: args.maxUses,
2026
+ allowed_domains: args.allowedDomains,
2027
+ blocked_domains: args.blockedDomains,
2028
+ user_location: args.userLocation,
2029
+ response_inclusion: args.responseInclusion,
2030
+ cache_control: void 0
2031
+ });
2032
+ break;
2033
+ }
1881
2034
  case "anthropic.tool_search_regex_20251119": {
1882
2035
  anthropicTools2.push({
1883
2036
  type: "tool_search_tool_regex_20251119",
@@ -2051,145 +2204,145 @@ import {
2051
2204
 
2052
2205
  // src/tool/code-execution_20250522.ts
2053
2206
  import {
2054
- createProviderExecutedToolFactory as createProviderExecutedToolFactory6,
2055
- lazySchema as lazySchema10,
2056
- zodSchema as zodSchema10
2207
+ createProviderExecutedToolFactory as createProviderExecutedToolFactory8,
2208
+ lazySchema as lazySchema12,
2209
+ zodSchema as zodSchema12
2057
2210
  } from "@ai-sdk/provider-utils";
2058
- import { z as z11 } from "zod/v4";
2059
- var codeExecution_20250522OutputSchema = lazySchema10(
2060
- () => zodSchema10(
2061
- z11.object({
2062
- type: z11.literal("code_execution_result"),
2063
- stdout: z11.string(),
2064
- stderr: z11.string(),
2065
- return_code: z11.number(),
2066
- content: z11.array(
2067
- z11.object({
2068
- type: z11.literal("code_execution_output"),
2069
- file_id: z11.string()
2211
+ import { z as z13 } from "zod/v4";
2212
+ var codeExecution_20250522OutputSchema = lazySchema12(
2213
+ () => zodSchema12(
2214
+ z13.object({
2215
+ type: z13.literal("code_execution_result"),
2216
+ stdout: z13.string(),
2217
+ stderr: z13.string(),
2218
+ return_code: z13.number(),
2219
+ content: z13.array(
2220
+ z13.object({
2221
+ type: z13.literal("code_execution_output"),
2222
+ file_id: z13.string()
2070
2223
  })
2071
2224
  ).optional().default([])
2072
2225
  })
2073
2226
  )
2074
2227
  );
2075
- var codeExecution_20250522InputSchema = lazySchema10(
2076
- () => zodSchema10(
2077
- z11.object({
2078
- code: z11.string()
2228
+ var codeExecution_20250522InputSchema = lazySchema12(
2229
+ () => zodSchema12(
2230
+ z13.object({
2231
+ code: z13.string()
2079
2232
  })
2080
2233
  )
2081
2234
  );
2082
- var factory7 = createProviderExecutedToolFactory6({
2235
+ var factory9 = createProviderExecutedToolFactory8({
2083
2236
  id: "anthropic.code_execution_20250522",
2084
2237
  inputSchema: codeExecution_20250522InputSchema,
2085
2238
  outputSchema: codeExecution_20250522OutputSchema
2086
2239
  });
2087
2240
  var codeExecution_20250522 = (args = {}) => {
2088
- return factory7(args);
2241
+ return factory9(args);
2089
2242
  };
2090
2243
 
2091
2244
  // src/tool/code-execution_20250825.ts
2092
2245
  import {
2093
- createProviderExecutedToolFactory as createProviderExecutedToolFactory7,
2246
+ createProviderExecutedToolFactory as createProviderExecutedToolFactory9,
2094
2247
  experimental_toolCaller,
2095
- lazySchema as lazySchema11,
2096
- zodSchema as zodSchema11
2248
+ lazySchema as lazySchema13,
2249
+ zodSchema as zodSchema13
2097
2250
  } from "@ai-sdk/provider-utils";
2098
- import { z as z12 } from "zod/v4";
2099
- var codeExecution_20250825OutputSchema = lazySchema11(
2100
- () => zodSchema11(
2101
- z12.discriminatedUnion("type", [
2102
- z12.object({
2103
- type: z12.literal("code_execution_result"),
2104
- stdout: z12.string(),
2105
- stderr: z12.string(),
2106
- return_code: z12.number(),
2107
- content: z12.array(
2108
- z12.object({
2109
- type: z12.literal("code_execution_output"),
2110
- file_id: z12.string()
2251
+ import { z as z14 } from "zod/v4";
2252
+ var codeExecution_20250825OutputSchema = lazySchema13(
2253
+ () => zodSchema13(
2254
+ z14.discriminatedUnion("type", [
2255
+ z14.object({
2256
+ type: z14.literal("code_execution_result"),
2257
+ stdout: z14.string(),
2258
+ stderr: z14.string(),
2259
+ return_code: z14.number(),
2260
+ content: z14.array(
2261
+ z14.object({
2262
+ type: z14.literal("code_execution_output"),
2263
+ file_id: z14.string()
2111
2264
  })
2112
2265
  ).optional().default([])
2113
2266
  }),
2114
- z12.object({
2115
- type: z12.literal("bash_code_execution_result"),
2116
- content: z12.array(
2117
- z12.object({
2118
- type: z12.literal("bash_code_execution_output"),
2119
- file_id: z12.string()
2267
+ z14.object({
2268
+ type: z14.literal("bash_code_execution_result"),
2269
+ content: z14.array(
2270
+ z14.object({
2271
+ type: z14.literal("bash_code_execution_output"),
2272
+ file_id: z14.string()
2120
2273
  })
2121
2274
  ),
2122
- stdout: z12.string(),
2123
- stderr: z12.string(),
2124
- return_code: z12.number()
2275
+ stdout: z14.string(),
2276
+ stderr: z14.string(),
2277
+ return_code: z14.number()
2125
2278
  }),
2126
- z12.object({
2127
- type: z12.literal("bash_code_execution_tool_result_error"),
2128
- error_code: z12.string()
2279
+ z14.object({
2280
+ type: z14.literal("bash_code_execution_tool_result_error"),
2281
+ error_code: z14.string()
2129
2282
  }),
2130
- z12.object({
2131
- type: z12.literal("text_editor_code_execution_tool_result_error"),
2132
- error_code: z12.string()
2283
+ z14.object({
2284
+ type: z14.literal("text_editor_code_execution_tool_result_error"),
2285
+ error_code: z14.string()
2133
2286
  }),
2134
- z12.object({
2135
- type: z12.literal("text_editor_code_execution_view_result"),
2136
- content: z12.string(),
2137
- file_type: z12.string(),
2138
- num_lines: z12.number().nullable(),
2139
- start_line: z12.number().nullable(),
2140
- total_lines: z12.number().nullable()
2287
+ z14.object({
2288
+ type: z14.literal("text_editor_code_execution_view_result"),
2289
+ content: z14.string(),
2290
+ file_type: z14.string(),
2291
+ num_lines: z14.number().nullable(),
2292
+ start_line: z14.number().nullable(),
2293
+ total_lines: z14.number().nullable()
2141
2294
  }),
2142
- z12.object({
2143
- type: z12.literal("text_editor_code_execution_create_result"),
2144
- is_file_update: z12.boolean()
2295
+ z14.object({
2296
+ type: z14.literal("text_editor_code_execution_create_result"),
2297
+ is_file_update: z14.boolean()
2145
2298
  }),
2146
- z12.object({
2147
- type: z12.literal("text_editor_code_execution_str_replace_result"),
2148
- lines: z12.array(z12.string()).nullable(),
2149
- new_lines: z12.number().nullable(),
2150
- new_start: z12.number().nullable(),
2151
- old_lines: z12.number().nullable(),
2152
- old_start: z12.number().nullable()
2299
+ z14.object({
2300
+ type: z14.literal("text_editor_code_execution_str_replace_result"),
2301
+ lines: z14.array(z14.string()).nullable(),
2302
+ new_lines: z14.number().nullable(),
2303
+ new_start: z14.number().nullable(),
2304
+ old_lines: z14.number().nullable(),
2305
+ old_start: z14.number().nullable()
2153
2306
  })
2154
2307
  ])
2155
2308
  )
2156
2309
  );
2157
- var codeExecution_20250825InputSchema = lazySchema11(
2158
- () => zodSchema11(
2159
- z12.discriminatedUnion("type", [
2310
+ var codeExecution_20250825InputSchema = lazySchema13(
2311
+ () => zodSchema13(
2312
+ z14.discriminatedUnion("type", [
2160
2313
  // Programmatic tool calling format (mapped from { code } by AI SDK)
2161
- z12.object({
2162
- type: z12.literal("programmatic-tool-call"),
2163
- code: z12.string()
2314
+ z14.object({
2315
+ type: z14.literal("programmatic-tool-call"),
2316
+ code: z14.string()
2164
2317
  }),
2165
- z12.object({
2166
- type: z12.literal("bash_code_execution"),
2167
- command: z12.string()
2318
+ z14.object({
2319
+ type: z14.literal("bash_code_execution"),
2320
+ command: z14.string()
2168
2321
  }),
2169
- z12.discriminatedUnion("command", [
2170
- z12.object({
2171
- type: z12.literal("text_editor_code_execution"),
2172
- command: z12.literal("view"),
2173
- path: z12.string()
2322
+ z14.discriminatedUnion("command", [
2323
+ z14.object({
2324
+ type: z14.literal("text_editor_code_execution"),
2325
+ command: z14.literal("view"),
2326
+ path: z14.string()
2174
2327
  }),
2175
- z12.object({
2176
- type: z12.literal("text_editor_code_execution"),
2177
- command: z12.literal("create"),
2178
- path: z12.string(),
2179
- file_text: z12.string().nullish()
2328
+ z14.object({
2329
+ type: z14.literal("text_editor_code_execution"),
2330
+ command: z14.literal("create"),
2331
+ path: z14.string(),
2332
+ file_text: z14.string().nullish()
2180
2333
  }),
2181
- z12.object({
2182
- type: z12.literal("text_editor_code_execution"),
2183
- command: z12.literal("str_replace"),
2184
- path: z12.string(),
2185
- old_str: z12.string(),
2186
- new_str: z12.string()
2334
+ z14.object({
2335
+ type: z14.literal("text_editor_code_execution"),
2336
+ command: z14.literal("str_replace"),
2337
+ path: z14.string(),
2338
+ old_str: z14.string(),
2339
+ new_str: z14.string()
2187
2340
  })
2188
2341
  ])
2189
2342
  ])
2190
2343
  )
2191
2344
  );
2192
- var factory8 = createProviderExecutedToolFactory7({
2345
+ var factory10 = createProviderExecutedToolFactory9({
2193
2346
  id: "anthropic.code_execution_20250825",
2194
2347
  inputSchema: codeExecution_20250825InputSchema,
2195
2348
  outputSchema: codeExecution_20250825OutputSchema,
@@ -2199,7 +2352,7 @@ var factory8 = createProviderExecutedToolFactory7({
2199
2352
  supportsDeferredResults: true
2200
2353
  });
2201
2354
  var codeExecution_20250825 = (args = {}) => {
2202
- return experimental_toolCaller(factory8(args), {
2355
+ return experimental_toolCaller(factory10(args), {
2203
2356
  type: "provider",
2204
2357
  prepareProviderOptions: (providerOptions) => {
2205
2358
  var _a;
@@ -2222,124 +2375,124 @@ var codeExecution_20250825 = (args = {}) => {
2222
2375
 
2223
2376
  // src/tool/code-execution_20260120.ts
2224
2377
  import {
2225
- createProviderExecutedToolFactory as createProviderExecutedToolFactory8,
2378
+ createProviderExecutedToolFactory as createProviderExecutedToolFactory10,
2226
2379
  experimental_toolCaller as experimental_toolCaller2,
2227
- lazySchema as lazySchema12,
2228
- zodSchema as zodSchema12
2380
+ lazySchema as lazySchema14,
2381
+ zodSchema as zodSchema14
2229
2382
  } from "@ai-sdk/provider-utils";
2230
- import { z as z13 } from "zod/v4";
2231
- var codeExecution_20260120OutputSchema = lazySchema12(
2232
- () => zodSchema12(
2233
- z13.discriminatedUnion("type", [
2234
- z13.object({
2235
- type: z13.literal("code_execution_result"),
2236
- stdout: z13.string(),
2237
- stderr: z13.string(),
2238
- return_code: z13.number(),
2239
- content: z13.array(
2240
- z13.object({
2241
- type: z13.literal("code_execution_output"),
2242
- file_id: z13.string()
2383
+ import { z as z15 } from "zod/v4";
2384
+ var codeExecution_20260120OutputSchema = lazySchema14(
2385
+ () => zodSchema14(
2386
+ z15.discriminatedUnion("type", [
2387
+ z15.object({
2388
+ type: z15.literal("code_execution_result"),
2389
+ stdout: z15.string(),
2390
+ stderr: z15.string(),
2391
+ return_code: z15.number(),
2392
+ content: z15.array(
2393
+ z15.object({
2394
+ type: z15.literal("code_execution_output"),
2395
+ file_id: z15.string()
2243
2396
  })
2244
2397
  ).optional().default([])
2245
2398
  }),
2246
- z13.object({
2247
- type: z13.literal("encrypted_code_execution_result"),
2248
- encrypted_stdout: z13.string(),
2249
- stderr: z13.string(),
2250
- return_code: z13.number(),
2251
- content: z13.array(
2252
- z13.object({
2253
- type: z13.literal("code_execution_output"),
2254
- file_id: z13.string()
2399
+ z15.object({
2400
+ type: z15.literal("encrypted_code_execution_result"),
2401
+ encrypted_stdout: z15.string(),
2402
+ stderr: z15.string(),
2403
+ return_code: z15.number(),
2404
+ content: z15.array(
2405
+ z15.object({
2406
+ type: z15.literal("code_execution_output"),
2407
+ file_id: z15.string()
2255
2408
  })
2256
2409
  ).optional().default([])
2257
2410
  }),
2258
- z13.object({
2259
- type: z13.literal("bash_code_execution_result"),
2260
- content: z13.array(
2261
- z13.object({
2262
- type: z13.literal("bash_code_execution_output"),
2263
- file_id: z13.string()
2411
+ z15.object({
2412
+ type: z15.literal("bash_code_execution_result"),
2413
+ content: z15.array(
2414
+ z15.object({
2415
+ type: z15.literal("bash_code_execution_output"),
2416
+ file_id: z15.string()
2264
2417
  })
2265
2418
  ),
2266
- stdout: z13.string(),
2267
- stderr: z13.string(),
2268
- return_code: z13.number()
2419
+ stdout: z15.string(),
2420
+ stderr: z15.string(),
2421
+ return_code: z15.number()
2269
2422
  }),
2270
- z13.object({
2271
- type: z13.literal("bash_code_execution_tool_result_error"),
2272
- error_code: z13.string()
2423
+ z15.object({
2424
+ type: z15.literal("bash_code_execution_tool_result_error"),
2425
+ error_code: z15.string()
2273
2426
  }),
2274
- z13.object({
2275
- type: z13.literal("text_editor_code_execution_tool_result_error"),
2276
- error_code: z13.string()
2427
+ z15.object({
2428
+ type: z15.literal("text_editor_code_execution_tool_result_error"),
2429
+ error_code: z15.string()
2277
2430
  }),
2278
- z13.object({
2279
- type: z13.literal("text_editor_code_execution_view_result"),
2280
- content: z13.string(),
2281
- file_type: z13.string(),
2282
- num_lines: z13.number().nullable(),
2283
- start_line: z13.number().nullable(),
2284
- total_lines: z13.number().nullable()
2431
+ z15.object({
2432
+ type: z15.literal("text_editor_code_execution_view_result"),
2433
+ content: z15.string(),
2434
+ file_type: z15.string(),
2435
+ num_lines: z15.number().nullable(),
2436
+ start_line: z15.number().nullable(),
2437
+ total_lines: z15.number().nullable()
2285
2438
  }),
2286
- z13.object({
2287
- type: z13.literal("text_editor_code_execution_create_result"),
2288
- is_file_update: z13.boolean()
2439
+ z15.object({
2440
+ type: z15.literal("text_editor_code_execution_create_result"),
2441
+ is_file_update: z15.boolean()
2289
2442
  }),
2290
- z13.object({
2291
- type: z13.literal("text_editor_code_execution_str_replace_result"),
2292
- lines: z13.array(z13.string()).nullable(),
2293
- new_lines: z13.number().nullable(),
2294
- new_start: z13.number().nullable(),
2295
- old_lines: z13.number().nullable(),
2296
- old_start: z13.number().nullable()
2443
+ z15.object({
2444
+ type: z15.literal("text_editor_code_execution_str_replace_result"),
2445
+ lines: z15.array(z15.string()).nullable(),
2446
+ new_lines: z15.number().nullable(),
2447
+ new_start: z15.number().nullable(),
2448
+ old_lines: z15.number().nullable(),
2449
+ old_start: z15.number().nullable()
2297
2450
  })
2298
2451
  ])
2299
2452
  )
2300
2453
  );
2301
- var codeExecution_20260120InputSchema = lazySchema12(
2302
- () => zodSchema12(
2303
- z13.discriminatedUnion("type", [
2304
- z13.object({
2305
- type: z13.literal("programmatic-tool-call"),
2306
- code: z13.string()
2454
+ var codeExecution_20260120InputSchema = lazySchema14(
2455
+ () => zodSchema14(
2456
+ z15.discriminatedUnion("type", [
2457
+ z15.object({
2458
+ type: z15.literal("programmatic-tool-call"),
2459
+ code: z15.string()
2307
2460
  }),
2308
- z13.object({
2309
- type: z13.literal("bash_code_execution"),
2310
- command: z13.string()
2461
+ z15.object({
2462
+ type: z15.literal("bash_code_execution"),
2463
+ command: z15.string()
2311
2464
  }),
2312
- z13.discriminatedUnion("command", [
2313
- z13.object({
2314
- type: z13.literal("text_editor_code_execution"),
2315
- command: z13.literal("view"),
2316
- path: z13.string()
2465
+ z15.discriminatedUnion("command", [
2466
+ z15.object({
2467
+ type: z15.literal("text_editor_code_execution"),
2468
+ command: z15.literal("view"),
2469
+ path: z15.string()
2317
2470
  }),
2318
- z13.object({
2319
- type: z13.literal("text_editor_code_execution"),
2320
- command: z13.literal("create"),
2321
- path: z13.string(),
2322
- file_text: z13.string().nullish()
2471
+ z15.object({
2472
+ type: z15.literal("text_editor_code_execution"),
2473
+ command: z15.literal("create"),
2474
+ path: z15.string(),
2475
+ file_text: z15.string().nullish()
2323
2476
  }),
2324
- z13.object({
2325
- type: z13.literal("text_editor_code_execution"),
2326
- command: z13.literal("str_replace"),
2327
- path: z13.string(),
2328
- old_str: z13.string(),
2329
- new_str: z13.string()
2477
+ z15.object({
2478
+ type: z15.literal("text_editor_code_execution"),
2479
+ command: z15.literal("str_replace"),
2480
+ path: z15.string(),
2481
+ old_str: z15.string(),
2482
+ new_str: z15.string()
2330
2483
  })
2331
2484
  ])
2332
2485
  ])
2333
2486
  )
2334
2487
  );
2335
- var factory9 = createProviderExecutedToolFactory8({
2488
+ var factory11 = createProviderExecutedToolFactory10({
2336
2489
  id: "anthropic.code_execution_20260120",
2337
2490
  inputSchema: codeExecution_20260120InputSchema,
2338
2491
  outputSchema: codeExecution_20260120OutputSchema,
2339
2492
  supportsDeferredResults: true
2340
2493
  });
2341
2494
  var codeExecution_20260120 = (args = {}) => {
2342
- return experimental_toolCaller2(factory9(args), {
2495
+ return experimental_toolCaller2(factory11(args), {
2343
2496
  type: "provider",
2344
2497
  prepareProviderOptions: (providerOptions) => {
2345
2498
  var _a;
@@ -2362,24 +2515,24 @@ var codeExecution_20260120 = (args = {}) => {
2362
2515
 
2363
2516
  // src/tool/tool-search-regex_20251119.ts
2364
2517
  import {
2365
- createProviderExecutedToolFactory as createProviderExecutedToolFactory9,
2366
- lazySchema as lazySchema13,
2367
- zodSchema as zodSchema13
2518
+ createProviderExecutedToolFactory as createProviderExecutedToolFactory11,
2519
+ lazySchema as lazySchema15,
2520
+ zodSchema as zodSchema15
2368
2521
  } from "@ai-sdk/provider-utils";
2369
- import { z as z14 } from "zod/v4";
2370
- var toolSearchRegex_20251119OutputSchema = lazySchema13(
2371
- () => zodSchema13(
2372
- z14.array(
2373
- z14.object({
2374
- type: z14.literal("tool_reference"),
2375
- toolName: z14.string()
2522
+ import { z as z16 } from "zod/v4";
2523
+ var toolSearchRegex_20251119OutputSchema = lazySchema15(
2524
+ () => zodSchema15(
2525
+ z16.array(
2526
+ z16.object({
2527
+ type: z16.literal("tool_reference"),
2528
+ toolName: z16.string()
2376
2529
  })
2377
2530
  )
2378
2531
  )
2379
2532
  );
2380
- var toolSearchRegex_20251119InputSchema = lazySchema13(
2381
- () => zodSchema13(
2382
- z14.object({
2533
+ var toolSearchRegex_20251119InputSchema = lazySchema15(
2534
+ () => zodSchema15(
2535
+ z16.object({
2383
2536
  /**
2384
2537
  * A regex pattern to search for tools.
2385
2538
  * Uses Python re.search() syntax. Maximum 200 characters.
@@ -2390,22 +2543,22 @@ var toolSearchRegex_20251119InputSchema = lazySchema13(
2390
2543
  * - "database.*query|query.*database" - OR patterns for flexibility
2391
2544
  * - "(?i)slack" - case-insensitive search
2392
2545
  */
2393
- pattern: z14.string(),
2546
+ pattern: z16.string(),
2394
2547
  /**
2395
2548
  * Maximum number of tools to return. Optional.
2396
2549
  */
2397
- limit: z14.number().optional()
2550
+ limit: z16.number().optional()
2398
2551
  })
2399
2552
  )
2400
2553
  );
2401
- var factory10 = createProviderExecutedToolFactory9({
2554
+ var factory12 = createProviderExecutedToolFactory11({
2402
2555
  id: "anthropic.tool_search_regex_20251119",
2403
2556
  inputSchema: toolSearchRegex_20251119InputSchema,
2404
2557
  outputSchema: toolSearchRegex_20251119OutputSchema,
2405
2558
  supportsDeferredResults: true
2406
2559
  });
2407
2560
  var toolSearchRegex_20251119 = (args = {}) => {
2408
- return factory10(args);
2561
+ return factory12(args);
2409
2562
  };
2410
2563
 
2411
2564
  // src/convert-to-anthropic-prompt.ts
@@ -3938,8 +4091,10 @@ var AnthropicLanguageModel = class _AnthropicLanguageModel {
3938
4091
  "anthropic.memory_20250818": "memory",
3939
4092
  "anthropic.web_search_20250305": "web_search",
3940
4093
  "anthropic.web_search_20260209": "web_search",
4094
+ "anthropic.web_search_20260318": "web_search",
3941
4095
  "anthropic.web_fetch_20250910": "web_fetch",
3942
4096
  "anthropic.web_fetch_20260209": "web_fetch",
4097
+ "anthropic.web_fetch_20260318": "web_fetch",
3943
4098
  "anthropic.tool_search_regex_20251119": "tool_search_tool_regex",
3944
4099
  "anthropic.tool_search_bm25_20251119": "tool_search_tool_bm25",
3945
4100
  "anthropic.advisor_20260301": "advisor"
@@ -4355,9 +4510,7 @@ var AnthropicLanguageModel = class _AnthropicLanguageModel {
4355
4510
  const citationDocuments = [
4356
4511
  ...this.extractCitationDocuments(options.prompt)
4357
4512
  ];
4358
- const markCodeExecutionDynamic = hasWebTool20260209WithoutCodeExecution(
4359
- args.tools
4360
- );
4513
+ const markCodeExecutionDynamic = hasDynamicFilteringWebToolWithoutCodeExecution(args.tools);
4361
4514
  const {
4362
4515
  responseHeaders,
4363
4516
  value: response,
@@ -4873,9 +5026,7 @@ var AnthropicLanguageModel = class _AnthropicLanguageModel {
4873
5026
  const citationDocuments = [
4874
5027
  ...this.extractCitationDocuments(options.prompt)
4875
5028
  ];
4876
- const markCodeExecutionDynamic = hasWebTool20260209WithoutCodeExecution(
4877
- body.tools
4878
- );
5029
+ const markCodeExecutionDynamic = hasDynamicFilteringWebToolWithoutCodeExecution(body.tools);
4879
5030
  const url = this.buildRequestUrl(true);
4880
5031
  const { responseHeaders, value: response } = await postJsonToApi({
4881
5032
  url,
@@ -5887,15 +6038,15 @@ function getModelCapabilities(modelId) {
5887
6038
  };
5888
6039
  }
5889
6040
  }
5890
- function hasWebTool20260209WithoutCodeExecution(tools) {
6041
+ function hasDynamicFilteringWebToolWithoutCodeExecution(tools) {
5891
6042
  if (!tools) {
5892
6043
  return false;
5893
6044
  }
5894
- let hasWebTool20260209 = false;
6045
+ let hasDynamicFilteringWebTool = false;
5895
6046
  let hasCodeExecutionTool = false;
5896
6047
  for (const tool of tools) {
5897
- if ("type" in tool && (tool.type === "web_fetch_20260209" || tool.type === "web_search_20260209")) {
5898
- hasWebTool20260209 = true;
6048
+ if ("type" in tool && (tool.type === "web_fetch_20260209" || tool.type === "web_fetch_20260318" || tool.type === "web_search_20260209" || tool.type === "web_search_20260318")) {
6049
+ hasDynamicFilteringWebTool = true;
5899
6050
  continue;
5900
6051
  }
5901
6052
  if ("type" in tool && (tool.type === "code_execution_20250522" || tool.type === "code_execution_20250825" || tool.type === "code_execution_20260120")) {
@@ -5903,7 +6054,7 @@ function hasWebTool20260209WithoutCodeExecution(tools) {
5903
6054
  break;
5904
6055
  }
5905
6056
  }
5906
- return hasWebTool20260209 && !hasCodeExecutionTool;
6057
+ return hasDynamicFilteringWebTool && !hasCodeExecutionTool;
5907
6058
  }
5908
6059
  function resolveAnthropicReasoningConfig({
5909
6060
  reasoning,
@@ -5986,15 +6137,15 @@ function mapAnthropicStopDetails(stopDetails) {
5986
6137
  // src/tool/bash_20241022.ts
5987
6138
  import {
5988
6139
  createProviderDefinedToolFactory as createProviderDefinedToolFactory2,
5989
- lazySchema as lazySchema14,
5990
- zodSchema as zodSchema14
6140
+ lazySchema as lazySchema16,
6141
+ zodSchema as zodSchema16
5991
6142
  } from "@ai-sdk/provider-utils";
5992
- import { z as z15 } from "zod/v4";
5993
- var bash_20241022InputSchema = lazySchema14(
5994
- () => zodSchema14(
5995
- z15.object({
5996
- command: z15.string(),
5997
- restart: z15.boolean().optional()
6143
+ import { z as z17 } from "zod/v4";
6144
+ var bash_20241022InputSchema = lazySchema16(
6145
+ () => zodSchema16(
6146
+ z17.object({
6147
+ command: z17.string(),
6148
+ restart: z17.boolean().optional()
5998
6149
  })
5999
6150
  )
6000
6151
  );
@@ -6027,15 +6178,15 @@ function bash_20241022(options = {}) {
6027
6178
  // src/tool/bash_20250124.ts
6028
6179
  import {
6029
6180
  createProviderDefinedToolFactory as createProviderDefinedToolFactory3,
6030
- lazySchema as lazySchema15,
6031
- zodSchema as zodSchema15
6181
+ lazySchema as lazySchema17,
6182
+ zodSchema as zodSchema17
6032
6183
  } from "@ai-sdk/provider-utils";
6033
- import { z as z16 } from "zod/v4";
6034
- var bash_20250124InputSchema = lazySchema15(
6035
- () => zodSchema15(
6036
- z16.object({
6037
- command: z16.string(),
6038
- restart: z16.boolean().optional()
6184
+ import { z as z18 } from "zod/v4";
6185
+ var bash_20250124InputSchema = lazySchema17(
6186
+ () => zodSchema17(
6187
+ z18.object({
6188
+ command: z18.string(),
6189
+ restart: z18.boolean().optional()
6039
6190
  })
6040
6191
  )
6041
6192
  );
@@ -6068,14 +6219,14 @@ function bash_20250124(options = {}) {
6068
6219
  // src/tool/computer_20241022.ts
6069
6220
  import {
6070
6221
  createProviderDefinedToolFactory as createProviderDefinedToolFactory4,
6071
- lazySchema as lazySchema16,
6072
- zodSchema as zodSchema16
6222
+ lazySchema as lazySchema18,
6223
+ zodSchema as zodSchema18
6073
6224
  } from "@ai-sdk/provider-utils";
6074
- import { z as z17 } from "zod/v4";
6075
- var computer_20241022InputSchema = lazySchema16(
6076
- () => zodSchema16(
6077
- z17.object({
6078
- action: z17.enum([
6225
+ import { z as z19 } from "zod/v4";
6226
+ var computer_20241022InputSchema = lazySchema18(
6227
+ () => zodSchema18(
6228
+ z19.object({
6229
+ action: z19.enum([
6079
6230
  "key",
6080
6231
  "type",
6081
6232
  "mouse_move",
@@ -6087,8 +6238,8 @@ var computer_20241022InputSchema = lazySchema16(
6087
6238
  "screenshot",
6088
6239
  "cursor_position"
6089
6240
  ]),
6090
- coordinate: z17.array(z17.number().int()).optional(),
6091
- text: z17.string().optional()
6241
+ coordinate: z19.array(z19.number().int()).optional(),
6242
+ text: z19.string().optional()
6092
6243
  })
6093
6244
  )
6094
6245
  );
@@ -6100,14 +6251,14 @@ var computer_20241022 = createProviderDefinedToolFactory4({
6100
6251
  // src/tool/computer_20250124.ts
6101
6252
  import {
6102
6253
  createProviderDefinedToolFactory as createProviderDefinedToolFactory5,
6103
- lazySchema as lazySchema17,
6104
- zodSchema as zodSchema17
6254
+ lazySchema as lazySchema19,
6255
+ zodSchema as zodSchema19
6105
6256
  } from "@ai-sdk/provider-utils";
6106
- import { z as z18 } from "zod/v4";
6107
- var computer_20250124InputSchema = lazySchema17(
6108
- () => zodSchema17(
6109
- z18.object({
6110
- action: z18.enum([
6257
+ import { z as z20 } from "zod/v4";
6258
+ var computer_20250124InputSchema = lazySchema19(
6259
+ () => zodSchema19(
6260
+ z20.object({
6261
+ action: z20.enum([
6111
6262
  "key",
6112
6263
  "hold_key",
6113
6264
  "type",
@@ -6125,12 +6276,12 @@ var computer_20250124InputSchema = lazySchema17(
6125
6276
  "wait",
6126
6277
  "screenshot"
6127
6278
  ]),
6128
- coordinate: z18.tuple([z18.number().int(), z18.number().int()]).optional(),
6129
- duration: z18.number().optional(),
6130
- scroll_amount: z18.number().optional(),
6131
- scroll_direction: z18.enum(["up", "down", "left", "right"]).optional(),
6132
- start_coordinate: z18.tuple([z18.number().int(), z18.number().int()]).optional(),
6133
- text: z18.string().optional()
6279
+ coordinate: z20.tuple([z20.number().int(), z20.number().int()]).optional(),
6280
+ duration: z20.number().optional(),
6281
+ scroll_amount: z20.number().optional(),
6282
+ scroll_direction: z20.enum(["up", "down", "left", "right"]).optional(),
6283
+ start_coordinate: z20.tuple([z20.number().int(), z20.number().int()]).optional(),
6284
+ text: z20.string().optional()
6134
6285
  })
6135
6286
  )
6136
6287
  );
@@ -6142,14 +6293,14 @@ var computer_20250124 = createProviderDefinedToolFactory5({
6142
6293
  // src/tool/computer_20251124.ts
6143
6294
  import {
6144
6295
  createProviderDefinedToolFactory as createProviderDefinedToolFactory6,
6145
- lazySchema as lazySchema18,
6146
- zodSchema as zodSchema18
6296
+ lazySchema as lazySchema20,
6297
+ zodSchema as zodSchema20
6147
6298
  } from "@ai-sdk/provider-utils";
6148
- import { z as z19 } from "zod/v4";
6149
- var computer_20251124InputSchema = lazySchema18(
6150
- () => zodSchema18(
6151
- z19.object({
6152
- action: z19.enum([
6299
+ import { z as z21 } from "zod/v4";
6300
+ var computer_20251124InputSchema = lazySchema20(
6301
+ () => zodSchema20(
6302
+ z21.object({
6303
+ action: z21.enum([
6153
6304
  "key",
6154
6305
  "hold_key",
6155
6306
  "type",
@@ -6168,18 +6319,18 @@ var computer_20251124InputSchema = lazySchema18(
6168
6319
  "screenshot",
6169
6320
  "zoom"
6170
6321
  ]),
6171
- coordinate: z19.tuple([z19.number().int(), z19.number().int()]).optional(),
6172
- duration: z19.number().optional(),
6173
- region: z19.tuple([
6174
- z19.number().int(),
6175
- z19.number().int(),
6176
- z19.number().int(),
6177
- z19.number().int()
6322
+ coordinate: z21.tuple([z21.number().int(), z21.number().int()]).optional(),
6323
+ duration: z21.number().optional(),
6324
+ region: z21.tuple([
6325
+ z21.number().int(),
6326
+ z21.number().int(),
6327
+ z21.number().int(),
6328
+ z21.number().int()
6178
6329
  ]).optional(),
6179
- scroll_amount: z19.number().optional(),
6180
- scroll_direction: z19.enum(["up", "down", "left", "right"]).optional(),
6181
- start_coordinate: z19.tuple([z19.number().int(), z19.number().int()]).optional(),
6182
- text: z19.string().optional()
6330
+ scroll_amount: z21.number().optional(),
6331
+ scroll_direction: z21.enum(["up", "down", "left", "right"]).optional(),
6332
+ start_coordinate: z21.tuple([z21.number().int(), z21.number().int()]).optional(),
6333
+ text: z21.string().optional()
6183
6334
  })
6184
6335
  )
6185
6336
  );
@@ -6191,43 +6342,43 @@ var computer_20251124 = createProviderDefinedToolFactory6({
6191
6342
  // src/tool/memory_20250818.ts
6192
6343
  import {
6193
6344
  createProviderDefinedToolFactory as createProviderDefinedToolFactory7,
6194
- lazySchema as lazySchema19,
6195
- zodSchema as zodSchema19
6345
+ lazySchema as lazySchema21,
6346
+ zodSchema as zodSchema21
6196
6347
  } from "@ai-sdk/provider-utils";
6197
- import { z as z20 } from "zod/v4";
6198
- var memory_20250818InputSchema = lazySchema19(
6199
- () => zodSchema19(
6200
- z20.discriminatedUnion("command", [
6201
- z20.object({
6202
- command: z20.literal("view"),
6203
- path: z20.string(),
6204
- view_range: z20.tuple([z20.number(), z20.number()]).optional()
6348
+ import { z as z22 } from "zod/v4";
6349
+ var memory_20250818InputSchema = lazySchema21(
6350
+ () => zodSchema21(
6351
+ z22.discriminatedUnion("command", [
6352
+ z22.object({
6353
+ command: z22.literal("view"),
6354
+ path: z22.string(),
6355
+ view_range: z22.tuple([z22.number(), z22.number()]).optional()
6205
6356
  }),
6206
- z20.object({
6207
- command: z20.literal("create"),
6208
- path: z20.string(),
6209
- file_text: z20.string()
6357
+ z22.object({
6358
+ command: z22.literal("create"),
6359
+ path: z22.string(),
6360
+ file_text: z22.string()
6210
6361
  }),
6211
- z20.object({
6212
- command: z20.literal("str_replace"),
6213
- path: z20.string(),
6214
- old_str: z20.string(),
6215
- new_str: z20.string()
6362
+ z22.object({
6363
+ command: z22.literal("str_replace"),
6364
+ path: z22.string(),
6365
+ old_str: z22.string(),
6366
+ new_str: z22.string()
6216
6367
  }),
6217
- z20.object({
6218
- command: z20.literal("insert"),
6219
- path: z20.string(),
6220
- insert_line: z20.number(),
6221
- insert_text: z20.string()
6368
+ z22.object({
6369
+ command: z22.literal("insert"),
6370
+ path: z22.string(),
6371
+ insert_line: z22.number(),
6372
+ insert_text: z22.string()
6222
6373
  }),
6223
- z20.object({
6224
- command: z20.literal("delete"),
6225
- path: z20.string()
6374
+ z22.object({
6375
+ command: z22.literal("delete"),
6376
+ path: z22.string()
6226
6377
  }),
6227
- z20.object({
6228
- command: z20.literal("rename"),
6229
- old_path: z20.string(),
6230
- new_path: z20.string()
6378
+ z22.object({
6379
+ command: z22.literal("rename"),
6380
+ old_path: z22.string(),
6381
+ new_path: z22.string()
6231
6382
  })
6232
6383
  ])
6233
6384
  )
@@ -6240,21 +6391,21 @@ var memory_20250818 = createProviderDefinedToolFactory7({
6240
6391
  // src/tool/text-editor_20241022.ts
6241
6392
  import {
6242
6393
  createProviderDefinedToolFactory as createProviderDefinedToolFactory8,
6243
- lazySchema as lazySchema20,
6244
- zodSchema as zodSchema20
6394
+ lazySchema as lazySchema22,
6395
+ zodSchema as zodSchema22
6245
6396
  } from "@ai-sdk/provider-utils";
6246
- import { z as z21 } from "zod/v4";
6247
- var textEditor_20241022InputSchema = lazySchema20(
6248
- () => zodSchema20(
6249
- z21.object({
6250
- command: z21.enum(["view", "create", "str_replace", "insert", "undo_edit"]),
6251
- path: z21.string(),
6252
- file_text: z21.string().optional(),
6253
- insert_line: z21.number().int().optional(),
6254
- new_str: z21.string().optional(),
6255
- insert_text: z21.string().optional(),
6256
- old_str: z21.string().optional(),
6257
- view_range: z21.array(z21.number().int()).optional()
6397
+ import { z as z23 } from "zod/v4";
6398
+ var textEditor_20241022InputSchema = lazySchema22(
6399
+ () => zodSchema22(
6400
+ z23.object({
6401
+ command: z23.enum(["view", "create", "str_replace", "insert", "undo_edit"]),
6402
+ path: z23.string(),
6403
+ file_text: z23.string().optional(),
6404
+ insert_line: z23.number().int().optional(),
6405
+ new_str: z23.string().optional(),
6406
+ insert_text: z23.string().optional(),
6407
+ old_str: z23.string().optional(),
6408
+ view_range: z23.array(z23.number().int()).optional()
6258
6409
  })
6259
6410
  )
6260
6411
  );
@@ -6266,21 +6417,21 @@ var textEditor_20241022 = createProviderDefinedToolFactory8({
6266
6417
  // src/tool/text-editor_20250124.ts
6267
6418
  import {
6268
6419
  createProviderDefinedToolFactory as createProviderDefinedToolFactory9,
6269
- lazySchema as lazySchema21,
6270
- zodSchema as zodSchema21
6420
+ lazySchema as lazySchema23,
6421
+ zodSchema as zodSchema23
6271
6422
  } from "@ai-sdk/provider-utils";
6272
- import { z as z22 } from "zod/v4";
6273
- var textEditor_20250124InputSchema = lazySchema21(
6274
- () => zodSchema21(
6275
- z22.object({
6276
- command: z22.enum(["view", "create", "str_replace", "insert", "undo_edit"]),
6277
- path: z22.string(),
6278
- file_text: z22.string().optional(),
6279
- insert_line: z22.number().int().optional(),
6280
- new_str: z22.string().optional(),
6281
- insert_text: z22.string().optional(),
6282
- old_str: z22.string().optional(),
6283
- view_range: z22.array(z22.number().int()).optional()
6423
+ import { z as z24 } from "zod/v4";
6424
+ var textEditor_20250124InputSchema = lazySchema23(
6425
+ () => zodSchema23(
6426
+ z24.object({
6427
+ command: z24.enum(["view", "create", "str_replace", "insert", "undo_edit"]),
6428
+ path: z24.string(),
6429
+ file_text: z24.string().optional(),
6430
+ insert_line: z24.number().int().optional(),
6431
+ new_str: z24.string().optional(),
6432
+ insert_text: z24.string().optional(),
6433
+ old_str: z24.string().optional(),
6434
+ view_range: z24.array(z24.number().int()).optional()
6284
6435
  })
6285
6436
  )
6286
6437
  );
@@ -6292,21 +6443,21 @@ var textEditor_20250124 = createProviderDefinedToolFactory9({
6292
6443
  // src/tool/text-editor_20250429.ts
6293
6444
  import {
6294
6445
  createProviderDefinedToolFactory as createProviderDefinedToolFactory10,
6295
- lazySchema as lazySchema22,
6296
- zodSchema as zodSchema22
6446
+ lazySchema as lazySchema24,
6447
+ zodSchema as zodSchema24
6297
6448
  } from "@ai-sdk/provider-utils";
6298
- import { z as z23 } from "zod/v4";
6299
- var textEditor_20250429InputSchema = lazySchema22(
6300
- () => zodSchema22(
6301
- z23.object({
6302
- command: z23.enum(["view", "create", "str_replace", "insert"]),
6303
- path: z23.string(),
6304
- file_text: z23.string().optional(),
6305
- insert_line: z23.number().int().optional(),
6306
- new_str: z23.string().optional(),
6307
- insert_text: z23.string().optional(),
6308
- old_str: z23.string().optional(),
6309
- view_range: z23.array(z23.number().int()).optional()
6449
+ import { z as z25 } from "zod/v4";
6450
+ var textEditor_20250429InputSchema = lazySchema24(
6451
+ () => zodSchema24(
6452
+ z25.object({
6453
+ command: z25.enum(["view", "create", "str_replace", "insert"]),
6454
+ path: z25.string(),
6455
+ file_text: z25.string().optional(),
6456
+ insert_line: z25.number().int().optional(),
6457
+ new_str: z25.string().optional(),
6458
+ insert_text: z25.string().optional(),
6459
+ old_str: z25.string().optional(),
6460
+ view_range: z25.array(z25.number().int()).optional()
6310
6461
  })
6311
6462
  )
6312
6463
  );
@@ -6317,44 +6468,44 @@ var textEditor_20250429 = createProviderDefinedToolFactory10({
6317
6468
 
6318
6469
  // src/tool/tool-search-bm25_20251119.ts
6319
6470
  import {
6320
- createProviderExecutedToolFactory as createProviderExecutedToolFactory10,
6321
- lazySchema as lazySchema23,
6322
- zodSchema as zodSchema23
6471
+ createProviderExecutedToolFactory as createProviderExecutedToolFactory12,
6472
+ lazySchema as lazySchema25,
6473
+ zodSchema as zodSchema25
6323
6474
  } from "@ai-sdk/provider-utils";
6324
- import { z as z24 } from "zod/v4";
6325
- var toolSearchBm25_20251119OutputSchema = lazySchema23(
6326
- () => zodSchema23(
6327
- z24.array(
6328
- z24.object({
6329
- type: z24.literal("tool_reference"),
6330
- toolName: z24.string()
6475
+ import { z as z26 } from "zod/v4";
6476
+ var toolSearchBm25_20251119OutputSchema = lazySchema25(
6477
+ () => zodSchema25(
6478
+ z26.array(
6479
+ z26.object({
6480
+ type: z26.literal("tool_reference"),
6481
+ toolName: z26.string()
6331
6482
  })
6332
6483
  )
6333
6484
  )
6334
6485
  );
6335
- var toolSearchBm25_20251119InputSchema = lazySchema23(
6336
- () => zodSchema23(
6337
- z24.object({
6486
+ var toolSearchBm25_20251119InputSchema = lazySchema25(
6487
+ () => zodSchema25(
6488
+ z26.object({
6338
6489
  /**
6339
6490
  * A natural language query to search for tools.
6340
6491
  * Claude will use BM25 text search to find relevant tools.
6341
6492
  */
6342
- query: z24.string(),
6493
+ query: z26.string(),
6343
6494
  /**
6344
6495
  * Maximum number of tools to return. Optional.
6345
6496
  */
6346
- limit: z24.number().optional()
6497
+ limit: z26.number().optional()
6347
6498
  })
6348
6499
  )
6349
6500
  );
6350
- var factory11 = createProviderExecutedToolFactory10({
6501
+ var factory13 = createProviderExecutedToolFactory12({
6351
6502
  id: "anthropic.tool_search_bm25_20251119",
6352
6503
  inputSchema: toolSearchBm25_20251119InputSchema,
6353
6504
  outputSchema: toolSearchBm25_20251119OutputSchema,
6354
6505
  supportsDeferredResults: true
6355
6506
  });
6356
6507
  var toolSearchBm25_20251119 = (args = {}) => {
6357
- return factory11(args);
6508
+ return factory13(args);
6358
6509
  };
6359
6510
 
6360
6511
  // src/anthropic-tools.ts
@@ -6542,6 +6693,18 @@ var anthropicTools = {
6542
6693
  * @param maxContentTokens - The max_content_tokens parameter limits the amount of content that will be included in the context.
6543
6694
  */
6544
6695
  webFetch_20260209,
6696
+ /**
6697
+ * Creates a web fetch tool that gives Claude direct access to real-time web content.
6698
+ *
6699
+ * @param maxUses - The max_uses parameter limits the number of web fetches performed
6700
+ * @param allowedDomains - Only fetch from these domains
6701
+ * @param blockedDomains - Never fetch from these domains
6702
+ * @param citations - Unlike web search where citations are always enabled, citations are optional for web fetch. Set "citations": {"enabled": true} to enable Claude to cite specific passages from fetched documents.
6703
+ * @param maxContentTokens - The max_content_tokens parameter limits the amount of content that will be included in the context.
6704
+ * @param useCache - Whether cached content may be returned. Set to false to fetch fresh content.
6705
+ * @param responseInclusion - Whether result blocks consumed by completed code execution calls are returned. Defaults to "full".
6706
+ */
6707
+ webFetch_20260318,
6545
6708
  /**
6546
6709
  * Creates a web search tool that gives Claude direct access to real-time web content.
6547
6710
  *
@@ -6560,6 +6723,16 @@ var anthropicTools = {
6560
6723
  * @param userLocation - Optional user location information to provide geographically relevant search results.
6561
6724
  */
6562
6725
  webSearch_20260209,
6726
+ /**
6727
+ * Creates a web search tool that gives Claude direct access to real-time web content.
6728
+ *
6729
+ * @param maxUses - Maximum number of web searches Claude can perform during the conversation.
6730
+ * @param allowedDomains - Optional list of domains that Claude is allowed to search.
6731
+ * @param blockedDomains - Optional list of domains that Claude should avoid when searching.
6732
+ * @param userLocation - Optional user location information to provide geographically relevant search results.
6733
+ * @param responseInclusion - Whether result blocks consumed by completed code execution calls are returned. Defaults to "full".
6734
+ */
6735
+ webSearch_20260318,
6563
6736
  /**
6564
6737
  * Creates a tool search tool that uses regex patterns to find tools.
6565
6738
  *
@@ -6601,40 +6774,40 @@ import {
6601
6774
  } from "@ai-sdk/provider-utils";
6602
6775
 
6603
6776
  // src/skills/anthropic-skills-api.ts
6604
- import { lazySchema as lazySchema24, zodSchema as zodSchema24 } from "@ai-sdk/provider-utils";
6605
- import { z as z25 } from "zod/v4";
6606
- var anthropicSkillResponseSchema = lazySchema24(
6607
- () => zodSchema24(
6608
- z25.object({
6609
- id: z25.string(),
6610
- display_title: z25.string().nullish(),
6611
- name: z25.string().nullish(),
6612
- description: z25.string().nullish(),
6613
- latest_version: z25.string().nullish(),
6614
- source: z25.string(),
6615
- created_at: z25.string(),
6616
- updated_at: z25.string()
6777
+ import { lazySchema as lazySchema26, zodSchema as zodSchema26 } from "@ai-sdk/provider-utils";
6778
+ import { z as z27 } from "zod/v4";
6779
+ var anthropicSkillResponseSchema = lazySchema26(
6780
+ () => zodSchema26(
6781
+ z27.object({
6782
+ id: z27.string(),
6783
+ display_title: z27.string().nullish(),
6784
+ name: z27.string().nullish(),
6785
+ description: z27.string().nullish(),
6786
+ latest_version: z27.string().nullish(),
6787
+ source: z27.string(),
6788
+ created_at: z27.string(),
6789
+ updated_at: z27.string()
6617
6790
  })
6618
6791
  )
6619
6792
  );
6620
- var anthropicSkillVersionListResponseSchema = lazySchema24(
6621
- () => zodSchema24(
6622
- z25.object({
6623
- data: z25.array(
6624
- z25.object({
6625
- version: z25.string()
6793
+ var anthropicSkillVersionListResponseSchema = lazySchema26(
6794
+ () => zodSchema26(
6795
+ z27.object({
6796
+ data: z27.array(
6797
+ z27.object({
6798
+ version: z27.string()
6626
6799
  })
6627
6800
  )
6628
6801
  })
6629
6802
  )
6630
6803
  );
6631
- var anthropicSkillVersionResponseSchema = lazySchema24(
6632
- () => zodSchema24(
6633
- z25.object({
6634
- type: z25.string(),
6635
- skill_id: z25.string(),
6636
- name: z25.string().nullish(),
6637
- description: z25.string().nullish()
6804
+ var anthropicSkillVersionResponseSchema = lazySchema26(
6805
+ () => zodSchema26(
6806
+ z27.object({
6807
+ type: z27.string(),
6808
+ skill_id: z27.string(),
6809
+ name: z27.string().nullish(),
6810
+ description: z27.string().nullish()
6638
6811
  })
6639
6812
  )
6640
6813
  );