@ai-sdk/anthropic 3.0.0-beta.70 → 3.0.0-beta.72
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.
- package/CHANGELOG.md +15 -0
- package/dist/index.d.mts +0 -26
- package/dist/index.d.ts +0 -26
- package/dist/index.js +9 -31
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -31
- package/dist/index.mjs.map +1 -1
- package/dist/internal/index.d.mts +6 -27
- package/dist/internal/index.d.ts +6 -27
- package/dist/internal/index.js +8 -30
- package/dist/internal/index.js.map +1 -1
- package/dist/internal/index.mjs +8 -30
- package/dist/internal/index.mjs.map +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @ai-sdk/anthropic
|
|
2
2
|
|
|
3
|
+
## 3.0.0-beta.72
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- a5f77a6: fix(anthropic): remove outdated tool name docs
|
|
8
|
+
|
|
9
|
+
## 3.0.0-beta.71
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 1bd7d32: feat: tool-specific strict mode
|
|
14
|
+
- Updated dependencies [1bd7d32]
|
|
15
|
+
- @ai-sdk/provider-utils@4.0.0-beta.41
|
|
16
|
+
- @ai-sdk/provider@3.0.0-beta.23
|
|
17
|
+
|
|
3
18
|
## 3.0.0-beta.70
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
package/dist/index.d.mts
CHANGED
|
@@ -92,8 +92,6 @@ declare const anthropicTools: {
|
|
|
92
92
|
* allowing system operations, script execution, and command-line automation.
|
|
93
93
|
*
|
|
94
94
|
* Image results are supported.
|
|
95
|
-
*
|
|
96
|
-
* Tool name must be `bash`.
|
|
97
95
|
*/
|
|
98
96
|
bash_20241022: _ai_sdk_provider_utils.ProviderToolFactory<{
|
|
99
97
|
command: string;
|
|
@@ -104,8 +102,6 @@ declare const anthropicTools: {
|
|
|
104
102
|
* allowing system operations, script execution, and command-line automation.
|
|
105
103
|
*
|
|
106
104
|
* Image results are supported.
|
|
107
|
-
*
|
|
108
|
-
* Tool name must be `bash`.
|
|
109
105
|
*/
|
|
110
106
|
bash_20250124: _ai_sdk_provider_utils.ProviderToolFactory<{
|
|
111
107
|
command: string;
|
|
@@ -118,8 +114,6 @@ declare const anthropicTools: {
|
|
|
118
114
|
*
|
|
119
115
|
* The code execution tool allows Claude to run Bash commands and manipulate files,
|
|
120
116
|
* including writing code, in a secure, sandboxed environment.
|
|
121
|
-
*
|
|
122
|
-
* Tool name must be `code_execution`.
|
|
123
117
|
*/
|
|
124
118
|
codeExecution_20250522: (args?: Parameters<_ai_sdk_provider_utils.ProviderToolFactoryWithOutputSchema<{
|
|
125
119
|
code: string;
|
|
@@ -145,8 +139,6 @@ declare const anthropicTools: {
|
|
|
145
139
|
* including writing code, in a secure, sandboxed environment.
|
|
146
140
|
*
|
|
147
141
|
* This is the latest version with enhanced Bash support and file operations.
|
|
148
|
-
*
|
|
149
|
-
* Tool name must be `code_execution`.
|
|
150
142
|
*/
|
|
151
143
|
codeExecution_20250825: (args?: Parameters<_ai_sdk_provider_utils.ProviderToolFactoryWithOutputSchema<{
|
|
152
144
|
type: "bash_code_execution";
|
|
@@ -255,8 +247,6 @@ declare const anthropicTools: {
|
|
|
255
247
|
*
|
|
256
248
|
* Image results are supported.
|
|
257
249
|
*
|
|
258
|
-
* Tool name must be `computer`.
|
|
259
|
-
*
|
|
260
250
|
* @param displayWidthPx - The width of the display being controlled by the model in pixels.
|
|
261
251
|
* @param displayHeightPx - The height of the display being controlled by the model in pixels.
|
|
262
252
|
* @param displayNumber - The display number to control (only relevant for X11 environments). If specified, the tool will be provided a display number in the tool definition.
|
|
@@ -276,8 +266,6 @@ declare const anthropicTools: {
|
|
|
276
266
|
*
|
|
277
267
|
* Image results are supported.
|
|
278
268
|
*
|
|
279
|
-
* Tool name must be `computer`.
|
|
280
|
-
*
|
|
281
269
|
* @param displayWidthPx - The width of the display being controlled by the model in pixels.
|
|
282
270
|
* @param displayHeightPx - The height of the display being controlled by the model in pixels.
|
|
283
271
|
* @param displayNumber - The display number to control (only relevant for X11 environments). If specified, the tool will be provided a display number in the tool definition.
|
|
@@ -302,8 +290,6 @@ declare const anthropicTools: {
|
|
|
302
290
|
* The memory tool operates client-side—you control where and how the data is stored through your own infrastructure.
|
|
303
291
|
*
|
|
304
292
|
* Supported models: Claude Sonnet 4.5, Claude Sonnet 4, Claude Opus 4.1, Claude Opus 4.
|
|
305
|
-
*
|
|
306
|
-
* Tool name must be `memory`.
|
|
307
293
|
*/
|
|
308
294
|
memory_20250818: _ai_sdk_provider_utils.ProviderToolFactory<{
|
|
309
295
|
command: "view";
|
|
@@ -337,8 +323,6 @@ declare const anthropicTools: {
|
|
|
337
323
|
* to directly interact with your files, providing hands-on assistance rather than just suggesting changes.
|
|
338
324
|
*
|
|
339
325
|
* Supported models: Claude Sonnet 3.5
|
|
340
|
-
*
|
|
341
|
-
* Tool name must be `str_replace_editor`.
|
|
342
326
|
*/
|
|
343
327
|
textEditor_20241022: _ai_sdk_provider_utils.ProviderToolFactory<{
|
|
344
328
|
command: "view" | "create" | "str_replace" | "insert" | "undo_edit";
|
|
@@ -355,8 +339,6 @@ declare const anthropicTools: {
|
|
|
355
339
|
* to directly interact with your files, providing hands-on assistance rather than just suggesting changes.
|
|
356
340
|
*
|
|
357
341
|
* Supported models: Claude Sonnet 3.7
|
|
358
|
-
*
|
|
359
|
-
* Tool name must be `str_replace_editor`.
|
|
360
342
|
*/
|
|
361
343
|
textEditor_20250124: _ai_sdk_provider_utils.ProviderToolFactory<{
|
|
362
344
|
command: "view" | "create" | "str_replace" | "insert" | "undo_edit";
|
|
@@ -374,8 +356,6 @@ declare const anthropicTools: {
|
|
|
374
356
|
*
|
|
375
357
|
* Note: This version does not support the "undo_edit" command.
|
|
376
358
|
*
|
|
377
|
-
* Tool name must be `str_replace_based_edit_tool`.
|
|
378
|
-
*
|
|
379
359
|
* @deprecated Use textEditor_20250728 instead
|
|
380
360
|
*/
|
|
381
361
|
textEditor_20250429: _ai_sdk_provider_utils.ProviderToolFactory<{
|
|
@@ -396,8 +376,6 @@ declare const anthropicTools: {
|
|
|
396
376
|
*
|
|
397
377
|
* Supported models: Claude Sonnet 4, Opus 4, and Opus 4.1
|
|
398
378
|
*
|
|
399
|
-
* Tool name must be `str_replace_based_edit_tool`.
|
|
400
|
-
*
|
|
401
379
|
* @param maxCharacters - Optional maximum number of characters to view in the file
|
|
402
380
|
*/
|
|
403
381
|
textEditor_20250728: (args?: Parameters<_ai_sdk_provider_utils.ProviderToolFactory<{
|
|
@@ -422,8 +400,6 @@ declare const anthropicTools: {
|
|
|
422
400
|
/**
|
|
423
401
|
* Creates a web fetch tool that gives Claude direct access to real-time web content.
|
|
424
402
|
*
|
|
425
|
-
* Tool name must be `web_fetch`.
|
|
426
|
-
*
|
|
427
403
|
* @param maxUses - The max_uses parameter limits the number of web fetches performed
|
|
428
404
|
* @param allowedDomains - Only fetch from these domains
|
|
429
405
|
* @param blockedDomains - Never fetch from these domains
|
|
@@ -486,8 +462,6 @@ declare const anthropicTools: {
|
|
|
486
462
|
/**
|
|
487
463
|
* Creates a web search tool that gives Claude direct access to real-time web content.
|
|
488
464
|
*
|
|
489
|
-
* Tool name must be `web_search`.
|
|
490
|
-
*
|
|
491
465
|
* @param maxUses - Maximum number of web searches Claude can perform during the conversation.
|
|
492
466
|
* @param allowedDomains - Optional list of domains that Claude is allowed to search.
|
|
493
467
|
* @param blockedDomains - Optional list of domains that Claude should avoid when searching.
|
package/dist/index.d.ts
CHANGED
|
@@ -92,8 +92,6 @@ declare const anthropicTools: {
|
|
|
92
92
|
* allowing system operations, script execution, and command-line automation.
|
|
93
93
|
*
|
|
94
94
|
* Image results are supported.
|
|
95
|
-
*
|
|
96
|
-
* Tool name must be `bash`.
|
|
97
95
|
*/
|
|
98
96
|
bash_20241022: _ai_sdk_provider_utils.ProviderToolFactory<{
|
|
99
97
|
command: string;
|
|
@@ -104,8 +102,6 @@ declare const anthropicTools: {
|
|
|
104
102
|
* allowing system operations, script execution, and command-line automation.
|
|
105
103
|
*
|
|
106
104
|
* Image results are supported.
|
|
107
|
-
*
|
|
108
|
-
* Tool name must be `bash`.
|
|
109
105
|
*/
|
|
110
106
|
bash_20250124: _ai_sdk_provider_utils.ProviderToolFactory<{
|
|
111
107
|
command: string;
|
|
@@ -118,8 +114,6 @@ declare const anthropicTools: {
|
|
|
118
114
|
*
|
|
119
115
|
* The code execution tool allows Claude to run Bash commands and manipulate files,
|
|
120
116
|
* including writing code, in a secure, sandboxed environment.
|
|
121
|
-
*
|
|
122
|
-
* Tool name must be `code_execution`.
|
|
123
117
|
*/
|
|
124
118
|
codeExecution_20250522: (args?: Parameters<_ai_sdk_provider_utils.ProviderToolFactoryWithOutputSchema<{
|
|
125
119
|
code: string;
|
|
@@ -145,8 +139,6 @@ declare const anthropicTools: {
|
|
|
145
139
|
* including writing code, in a secure, sandboxed environment.
|
|
146
140
|
*
|
|
147
141
|
* This is the latest version with enhanced Bash support and file operations.
|
|
148
|
-
*
|
|
149
|
-
* Tool name must be `code_execution`.
|
|
150
142
|
*/
|
|
151
143
|
codeExecution_20250825: (args?: Parameters<_ai_sdk_provider_utils.ProviderToolFactoryWithOutputSchema<{
|
|
152
144
|
type: "bash_code_execution";
|
|
@@ -255,8 +247,6 @@ declare const anthropicTools: {
|
|
|
255
247
|
*
|
|
256
248
|
* Image results are supported.
|
|
257
249
|
*
|
|
258
|
-
* Tool name must be `computer`.
|
|
259
|
-
*
|
|
260
250
|
* @param displayWidthPx - The width of the display being controlled by the model in pixels.
|
|
261
251
|
* @param displayHeightPx - The height of the display being controlled by the model in pixels.
|
|
262
252
|
* @param displayNumber - The display number to control (only relevant for X11 environments). If specified, the tool will be provided a display number in the tool definition.
|
|
@@ -276,8 +266,6 @@ declare const anthropicTools: {
|
|
|
276
266
|
*
|
|
277
267
|
* Image results are supported.
|
|
278
268
|
*
|
|
279
|
-
* Tool name must be `computer`.
|
|
280
|
-
*
|
|
281
269
|
* @param displayWidthPx - The width of the display being controlled by the model in pixels.
|
|
282
270
|
* @param displayHeightPx - The height of the display being controlled by the model in pixels.
|
|
283
271
|
* @param displayNumber - The display number to control (only relevant for X11 environments). If specified, the tool will be provided a display number in the tool definition.
|
|
@@ -302,8 +290,6 @@ declare const anthropicTools: {
|
|
|
302
290
|
* The memory tool operates client-side—you control where and how the data is stored through your own infrastructure.
|
|
303
291
|
*
|
|
304
292
|
* Supported models: Claude Sonnet 4.5, Claude Sonnet 4, Claude Opus 4.1, Claude Opus 4.
|
|
305
|
-
*
|
|
306
|
-
* Tool name must be `memory`.
|
|
307
293
|
*/
|
|
308
294
|
memory_20250818: _ai_sdk_provider_utils.ProviderToolFactory<{
|
|
309
295
|
command: "view";
|
|
@@ -337,8 +323,6 @@ declare const anthropicTools: {
|
|
|
337
323
|
* to directly interact with your files, providing hands-on assistance rather than just suggesting changes.
|
|
338
324
|
*
|
|
339
325
|
* Supported models: Claude Sonnet 3.5
|
|
340
|
-
*
|
|
341
|
-
* Tool name must be `str_replace_editor`.
|
|
342
326
|
*/
|
|
343
327
|
textEditor_20241022: _ai_sdk_provider_utils.ProviderToolFactory<{
|
|
344
328
|
command: "view" | "create" | "str_replace" | "insert" | "undo_edit";
|
|
@@ -355,8 +339,6 @@ declare const anthropicTools: {
|
|
|
355
339
|
* to directly interact with your files, providing hands-on assistance rather than just suggesting changes.
|
|
356
340
|
*
|
|
357
341
|
* Supported models: Claude Sonnet 3.7
|
|
358
|
-
*
|
|
359
|
-
* Tool name must be `str_replace_editor`.
|
|
360
342
|
*/
|
|
361
343
|
textEditor_20250124: _ai_sdk_provider_utils.ProviderToolFactory<{
|
|
362
344
|
command: "view" | "create" | "str_replace" | "insert" | "undo_edit";
|
|
@@ -374,8 +356,6 @@ declare const anthropicTools: {
|
|
|
374
356
|
*
|
|
375
357
|
* Note: This version does not support the "undo_edit" command.
|
|
376
358
|
*
|
|
377
|
-
* Tool name must be `str_replace_based_edit_tool`.
|
|
378
|
-
*
|
|
379
359
|
* @deprecated Use textEditor_20250728 instead
|
|
380
360
|
*/
|
|
381
361
|
textEditor_20250429: _ai_sdk_provider_utils.ProviderToolFactory<{
|
|
@@ -396,8 +376,6 @@ declare const anthropicTools: {
|
|
|
396
376
|
*
|
|
397
377
|
* Supported models: Claude Sonnet 4, Opus 4, and Opus 4.1
|
|
398
378
|
*
|
|
399
|
-
* Tool name must be `str_replace_based_edit_tool`.
|
|
400
|
-
*
|
|
401
379
|
* @param maxCharacters - Optional maximum number of characters to view in the file
|
|
402
380
|
*/
|
|
403
381
|
textEditor_20250728: (args?: Parameters<_ai_sdk_provider_utils.ProviderToolFactory<{
|
|
@@ -422,8 +400,6 @@ declare const anthropicTools: {
|
|
|
422
400
|
/**
|
|
423
401
|
* Creates a web fetch tool that gives Claude direct access to real-time web content.
|
|
424
402
|
*
|
|
425
|
-
* Tool name must be `web_fetch`.
|
|
426
|
-
*
|
|
427
403
|
* @param maxUses - The max_uses parameter limits the number of web fetches performed
|
|
428
404
|
* @param allowedDomains - Only fetch from these domains
|
|
429
405
|
* @param blockedDomains - Never fetch from these domains
|
|
@@ -486,8 +462,6 @@ declare const anthropicTools: {
|
|
|
486
462
|
/**
|
|
487
463
|
* Creates a web search tool that gives Claude direct access to real-time web content.
|
|
488
464
|
*
|
|
489
|
-
* Tool name must be `web_search`.
|
|
490
|
-
*
|
|
491
465
|
* @param maxUses - Maximum number of web searches Claude can perform during the conversation.
|
|
492
466
|
* @param allowedDomains - Optional list of domains that Claude is allowed to search.
|
|
493
467
|
* @param blockedDomains - Optional list of domains that Claude should avoid when searching.
|
package/dist/index.js
CHANGED
|
@@ -31,7 +31,7 @@ var import_provider4 = require("@ai-sdk/provider");
|
|
|
31
31
|
var import_provider_utils20 = require("@ai-sdk/provider-utils");
|
|
32
32
|
|
|
33
33
|
// src/version.ts
|
|
34
|
-
var VERSION = true ? "3.0.0-beta.
|
|
34
|
+
var VERSION = true ? "3.0.0-beta.72" : "0.0.0-test";
|
|
35
35
|
|
|
36
36
|
// src/anthropic-messages-language-model.ts
|
|
37
37
|
var import_provider3 = require("@ai-sdk/provider");
|
|
@@ -856,7 +856,8 @@ async function prepareTools({
|
|
|
856
856
|
tools,
|
|
857
857
|
toolChoice,
|
|
858
858
|
disableParallelToolUse,
|
|
859
|
-
cacheControlValidator
|
|
859
|
+
cacheControlValidator,
|
|
860
|
+
supportsStructuredOutput
|
|
860
861
|
}) {
|
|
861
862
|
tools = (tools == null ? void 0 : tools.length) ? tools : void 0;
|
|
862
863
|
const toolWarnings = [];
|
|
@@ -877,7 +878,8 @@ async function prepareTools({
|
|
|
877
878
|
name: tool.name,
|
|
878
879
|
description: tool.description,
|
|
879
880
|
input_schema: tool.inputSchema,
|
|
880
|
-
cache_control: cacheControl
|
|
881
|
+
cache_control: cacheControl,
|
|
882
|
+
...supportsStructuredOutput === true && tool.strict != null ? { strict: tool.strict } : {}
|
|
881
883
|
});
|
|
882
884
|
break;
|
|
883
885
|
}
|
|
@@ -2139,12 +2141,14 @@ var AnthropicMessagesLanguageModel = class {
|
|
|
2139
2141
|
tools: [...tools != null ? tools : [], jsonResponseTool],
|
|
2140
2142
|
toolChoice: { type: "required" },
|
|
2141
2143
|
disableParallelToolUse: true,
|
|
2142
|
-
cacheControlValidator
|
|
2144
|
+
cacheControlValidator,
|
|
2145
|
+
supportsStructuredOutput
|
|
2143
2146
|
} : {
|
|
2144
2147
|
tools: tools != null ? tools : [],
|
|
2145
2148
|
toolChoice,
|
|
2146
2149
|
disableParallelToolUse: anthropicOptions == null ? void 0 : anthropicOptions.disableParallelToolUse,
|
|
2147
|
-
cacheControlValidator
|
|
2150
|
+
cacheControlValidator,
|
|
2151
|
+
supportsStructuredOutput
|
|
2148
2152
|
}
|
|
2149
2153
|
);
|
|
2150
2154
|
const cacheWarnings = cacheControlValidator.getWarnings();
|
|
@@ -3309,8 +3313,6 @@ var anthropicTools = {
|
|
|
3309
3313
|
* allowing system operations, script execution, and command-line automation.
|
|
3310
3314
|
*
|
|
3311
3315
|
* Image results are supported.
|
|
3312
|
-
*
|
|
3313
|
-
* Tool name must be `bash`.
|
|
3314
3316
|
*/
|
|
3315
3317
|
bash_20241022,
|
|
3316
3318
|
/**
|
|
@@ -3318,8 +3320,6 @@ var anthropicTools = {
|
|
|
3318
3320
|
* allowing system operations, script execution, and command-line automation.
|
|
3319
3321
|
*
|
|
3320
3322
|
* Image results are supported.
|
|
3321
|
-
*
|
|
3322
|
-
* Tool name must be `bash`.
|
|
3323
3323
|
*/
|
|
3324
3324
|
bash_20250124,
|
|
3325
3325
|
/**
|
|
@@ -3329,8 +3329,6 @@ var anthropicTools = {
|
|
|
3329
3329
|
*
|
|
3330
3330
|
* The code execution tool allows Claude to run Bash commands and manipulate files,
|
|
3331
3331
|
* including writing code, in a secure, sandboxed environment.
|
|
3332
|
-
*
|
|
3333
|
-
* Tool name must be `code_execution`.
|
|
3334
3332
|
*/
|
|
3335
3333
|
codeExecution_20250522,
|
|
3336
3334
|
/**
|
|
@@ -3342,8 +3340,6 @@ var anthropicTools = {
|
|
|
3342
3340
|
* including writing code, in a secure, sandboxed environment.
|
|
3343
3341
|
*
|
|
3344
3342
|
* This is the latest version with enhanced Bash support and file operations.
|
|
3345
|
-
*
|
|
3346
|
-
* Tool name must be `code_execution`.
|
|
3347
3343
|
*/
|
|
3348
3344
|
codeExecution_20250825,
|
|
3349
3345
|
/**
|
|
@@ -3352,8 +3348,6 @@ var anthropicTools = {
|
|
|
3352
3348
|
*
|
|
3353
3349
|
* Image results are supported.
|
|
3354
3350
|
*
|
|
3355
|
-
* Tool name must be `computer`.
|
|
3356
|
-
*
|
|
3357
3351
|
* @param displayWidthPx - The width of the display being controlled by the model in pixels.
|
|
3358
3352
|
* @param displayHeightPx - The height of the display being controlled by the model in pixels.
|
|
3359
3353
|
* @param displayNumber - The display number to control (only relevant for X11 environments). If specified, the tool will be provided a display number in the tool definition.
|
|
@@ -3365,8 +3359,6 @@ var anthropicTools = {
|
|
|
3365
3359
|
*
|
|
3366
3360
|
* Image results are supported.
|
|
3367
3361
|
*
|
|
3368
|
-
* Tool name must be `computer`.
|
|
3369
|
-
*
|
|
3370
3362
|
* @param displayWidthPx - The width of the display being controlled by the model in pixels.
|
|
3371
3363
|
* @param displayHeightPx - The height of the display being controlled by the model in pixels.
|
|
3372
3364
|
* @param displayNumber - The display number to control (only relevant for X11 environments). If specified, the tool will be provided a display number in the tool definition.
|
|
@@ -3379,8 +3371,6 @@ var anthropicTools = {
|
|
|
3379
3371
|
* The memory tool operates client-side—you control where and how the data is stored through your own infrastructure.
|
|
3380
3372
|
*
|
|
3381
3373
|
* Supported models: Claude Sonnet 4.5, Claude Sonnet 4, Claude Opus 4.1, Claude Opus 4.
|
|
3382
|
-
*
|
|
3383
|
-
* Tool name must be `memory`.
|
|
3384
3374
|
*/
|
|
3385
3375
|
memory_20250818,
|
|
3386
3376
|
/**
|
|
@@ -3389,8 +3379,6 @@ var anthropicTools = {
|
|
|
3389
3379
|
* to directly interact with your files, providing hands-on assistance rather than just suggesting changes.
|
|
3390
3380
|
*
|
|
3391
3381
|
* Supported models: Claude Sonnet 3.5
|
|
3392
|
-
*
|
|
3393
|
-
* Tool name must be `str_replace_editor`.
|
|
3394
3382
|
*/
|
|
3395
3383
|
textEditor_20241022,
|
|
3396
3384
|
/**
|
|
@@ -3399,8 +3387,6 @@ var anthropicTools = {
|
|
|
3399
3387
|
* to directly interact with your files, providing hands-on assistance rather than just suggesting changes.
|
|
3400
3388
|
*
|
|
3401
3389
|
* Supported models: Claude Sonnet 3.7
|
|
3402
|
-
*
|
|
3403
|
-
* Tool name must be `str_replace_editor`.
|
|
3404
3390
|
*/
|
|
3405
3391
|
textEditor_20250124,
|
|
3406
3392
|
/**
|
|
@@ -3410,8 +3396,6 @@ var anthropicTools = {
|
|
|
3410
3396
|
*
|
|
3411
3397
|
* Note: This version does not support the "undo_edit" command.
|
|
3412
3398
|
*
|
|
3413
|
-
* Tool name must be `str_replace_based_edit_tool`.
|
|
3414
|
-
*
|
|
3415
3399
|
* @deprecated Use textEditor_20250728 instead
|
|
3416
3400
|
*/
|
|
3417
3401
|
textEditor_20250429,
|
|
@@ -3424,16 +3408,12 @@ var anthropicTools = {
|
|
|
3424
3408
|
*
|
|
3425
3409
|
* Supported models: Claude Sonnet 4, Opus 4, and Opus 4.1
|
|
3426
3410
|
*
|
|
3427
|
-
* Tool name must be `str_replace_based_edit_tool`.
|
|
3428
|
-
*
|
|
3429
3411
|
* @param maxCharacters - Optional maximum number of characters to view in the file
|
|
3430
3412
|
*/
|
|
3431
3413
|
textEditor_20250728,
|
|
3432
3414
|
/**
|
|
3433
3415
|
* Creates a web fetch tool that gives Claude direct access to real-time web content.
|
|
3434
3416
|
*
|
|
3435
|
-
* Tool name must be `web_fetch`.
|
|
3436
|
-
*
|
|
3437
3417
|
* @param maxUses - The max_uses parameter limits the number of web fetches performed
|
|
3438
3418
|
* @param allowedDomains - Only fetch from these domains
|
|
3439
3419
|
* @param blockedDomains - Never fetch from these domains
|
|
@@ -3444,8 +3424,6 @@ var anthropicTools = {
|
|
|
3444
3424
|
/**
|
|
3445
3425
|
* Creates a web search tool that gives Claude direct access to real-time web content.
|
|
3446
3426
|
*
|
|
3447
|
-
* Tool name must be `web_search`.
|
|
3448
|
-
*
|
|
3449
3427
|
* @param maxUses - Maximum number of web searches Claude can perform during the conversation.
|
|
3450
3428
|
* @param allowedDomains - Optional list of domains that Claude is allowed to search.
|
|
3451
3429
|
* @param blockedDomains - Optional list of domains that Claude should avoid when searching.
|