@effect/ai-anthropic 4.0.0-beta.7 → 4.0.0-beta.71
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/dist/AnthropicClient.d.ts +89 -66
- package/dist/AnthropicClient.d.ts.map +1 -1
- package/dist/AnthropicClient.js +75 -17
- package/dist/AnthropicClient.js.map +1 -1
- package/dist/AnthropicConfig.d.ts +68 -10
- package/dist/AnthropicConfig.d.ts.map +1 -1
- package/dist/AnthropicConfig.js +43 -7
- package/dist/AnthropicConfig.js.map +1 -1
- package/dist/AnthropicError.d.ts +136 -37
- package/dist/AnthropicError.d.ts.map +1 -1
- package/dist/AnthropicError.js +1 -1
- package/dist/AnthropicLanguageModel.d.ts +384 -71
- package/dist/AnthropicLanguageModel.d.ts.map +1 -1
- package/dist/AnthropicLanguageModel.js +102 -16
- package/dist/AnthropicLanguageModel.js.map +1 -1
- package/dist/AnthropicTelemetry.d.ts +42 -15
- package/dist/AnthropicTelemetry.d.ts.map +1 -1
- package/dist/AnthropicTelemetry.js +44 -8
- package/dist/AnthropicTelemetry.js.map +1 -1
- package/dist/AnthropicTool.d.ts +1116 -183
- package/dist/AnthropicTool.d.ts.map +1 -1
- package/dist/AnthropicTool.js +818 -129
- package/dist/AnthropicTool.js.map +1 -1
- package/dist/Generated.d.ts +11661 -5260
- package/dist/Generated.d.ts.map +1 -1
- package/dist/Generated.js +2318 -915
- package/dist/Generated.js.map +1 -1
- package/dist/index.d.ts +8 -29
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +8 -29
- package/dist/index.js.map +1 -1
- package/dist/internal/errors.js +7 -7
- package/dist/internal/errors.js.map +1 -1
- package/package.json +3 -3
- package/src/AnthropicClient.ts +119 -70
- package/src/AnthropicConfig.ts +69 -11
- package/src/AnthropicError.ts +138 -37
- package/src/AnthropicLanguageModel.ts +405 -38
- package/src/AnthropicTelemetry.ts +76 -20
- package/src/AnthropicTool.ts +1109 -176
- package/src/Generated.ts +3751 -1815
- package/src/index.ts +8 -29
- package/src/internal/errors.ts +9 -7
package/dist/AnthropicTool.d.ts
CHANGED
|
@@ -1,28 +1,98 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Anthropic provider
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
2
|
+
* The `AnthropicTool` module defines Anthropic provider tools that can be
|
|
3
|
+
* attached to Anthropic-backed Effect AI language model requests. These are
|
|
4
|
+
* provider-defined tools: Anthropic owns the tool names, argument formats,
|
|
5
|
+
* beta headers, and in some cases the execution environment.
|
|
6
|
+
*
|
|
7
|
+
* **Mental model**
|
|
8
|
+
*
|
|
9
|
+
* - Exports such as {@link Bash_20250124}, {@link CodeExecution_20250825},
|
|
10
|
+
* {@link ComputerUse_20250124}, and {@link WebSearch_20250305} create
|
|
11
|
+
* versioned provider-defined tool values understood by the Anthropic
|
|
12
|
+
* language model integration
|
|
13
|
+
* - Tool-specific `Schema` exports describe the arguments Claude may provide
|
|
14
|
+
* when invoking that provider tool
|
|
15
|
+
* - Some tools run on Anthropic infrastructure, such as
|
|
16
|
+
* {@link WebSearch_20250305}, {@link WebFetch_20250910}, and
|
|
17
|
+
* {@link CodeExecution_20250825}; handler-backed tools such as Bash,
|
|
18
|
+
* Computer Use, and Text Editor variants require application-side execution
|
|
19
|
+
* - Selecting a versioned tool lets the Anthropic model layer add the beta
|
|
20
|
+
* header required by that exact Anthropic API version
|
|
21
|
+
*
|
|
22
|
+
* **Common tasks**
|
|
23
|
+
*
|
|
24
|
+
* - Enable terminal-style actions with {@link Bash_20250124}
|
|
25
|
+
* - Enable sandboxed code execution with {@link CodeExecution_20250825}
|
|
26
|
+
* - Enable desktop automation payloads with {@link ComputerUse_20250124}
|
|
27
|
+
* - Enable persistent memory file operations with {@link Memory_20250818}
|
|
28
|
+
* - Enable text-editor commands with {@link TextEditor_20250728}
|
|
29
|
+
* - Enable hosted web capabilities with {@link WebSearch_20250305} or
|
|
30
|
+
* {@link WebFetch_20250910}
|
|
31
|
+
* - Restrict tool discovery with {@link ToolSearchRegex_20251119} or
|
|
32
|
+
* {@link ToolSearchBM25_20251119}
|
|
33
|
+
*
|
|
34
|
+
* **Quickstart**
|
|
35
|
+
*
|
|
36
|
+
* **Example** (Creating hosted Anthropic tools)
|
|
37
|
+
*
|
|
38
|
+
* ```ts
|
|
39
|
+
* import { AnthropicTool } from "@effect/ai-anthropic"
|
|
40
|
+
*
|
|
41
|
+
* const tools = [
|
|
42
|
+
* AnthropicTool.WebSearch_20250305({ maxUses: 3 }),
|
|
43
|
+
* AnthropicTool.WebFetch_20250910({
|
|
44
|
+
* citations: { enabled: true }
|
|
45
|
+
* })
|
|
46
|
+
* ]
|
|
47
|
+
* ```
|
|
48
|
+
*
|
|
49
|
+
* **Gotchas**
|
|
50
|
+
*
|
|
51
|
+
* - The suffix date is part of the Anthropic tool contract; choose the version
|
|
52
|
+
* that matches the model and beta behavior you intend to use
|
|
53
|
+
* - Handler-backed tools expose schemas for Claude's requested actions, but
|
|
54
|
+
* your runtime is responsible for performing those actions and returning
|
|
55
|
+
* results
|
|
56
|
+
*
|
|
57
|
+
* @since 4.0.0
|
|
8
58
|
*/
|
|
9
59
|
import * as Schema from "effect/Schema";
|
|
10
60
|
import * as Tool from "effect/unstable/ai/Tool";
|
|
11
61
|
/**
|
|
12
|
-
* Union of all Anthropic provider-defined
|
|
62
|
+
* Union of all Anthropic provider-defined tool definitions exported by this module.
|
|
63
|
+
*
|
|
64
|
+
* **When to use**
|
|
65
|
+
*
|
|
66
|
+
* Use when a helper, collection, or option accepts any Anthropic
|
|
67
|
+
* provider-defined tool value created by this module.
|
|
68
|
+
*
|
|
69
|
+
* **Details**
|
|
70
|
+
*
|
|
71
|
+
* The union is built from the return types of the exported constructors,
|
|
72
|
+
* including Bash, Code Execution, Computer Use, Memory, Text Editor, Tool
|
|
73
|
+
* Search, Web Fetch, and Web Search tool versions.
|
|
13
74
|
*
|
|
14
|
-
* @since 1.0.0
|
|
15
75
|
* @category models
|
|
76
|
+
* @since 4.0.0
|
|
16
77
|
*/
|
|
17
78
|
export type AnthropicTool = ReturnType<typeof Bash_20241022> | ReturnType<typeof Bash_20250124> | ReturnType<typeof CodeExecution_20250522> | ReturnType<typeof CodeExecution_20250825> | ReturnType<typeof ComputerUse_20241022> | ReturnType<typeof ComputerUse_20250124> | ReturnType<typeof ComputerUse_20251124> | ReturnType<typeof Memory_20250818> | ReturnType<typeof TextEditor_20241022> | ReturnType<typeof TextEditor_20250124> | ReturnType<typeof TextEditor_20250429> | ReturnType<typeof TextEditor_20250728> | ReturnType<typeof ToolSearchRegex_20251119> | ReturnType<typeof ToolSearchBM25_20251119> | ReturnType<typeof WebFetch_20250910> | ReturnType<typeof WebSearch_20250305>;
|
|
18
79
|
/**
|
|
19
80
|
* Anthropic Bash tool (2024-10-22 version).
|
|
20
81
|
*
|
|
82
|
+
* **When to use**
|
|
83
|
+
*
|
|
84
|
+
* Use when you need the model to execute bash commands and require the 2024-10-22
|
|
85
|
+
* version of the Anthropic computer-use beta.
|
|
86
|
+
*
|
|
87
|
+
* **Details**
|
|
88
|
+
*
|
|
21
89
|
* Allows the model to execute bash commands in a sandboxed environment.
|
|
22
90
|
* Requires the "computer-use-2024-10-22" beta header.
|
|
23
91
|
*
|
|
24
|
-
* @
|
|
92
|
+
* @see {@link Bash_20250124} for the newer 2025-01-24 version of the bash tool
|
|
93
|
+
*
|
|
25
94
|
* @category Bash
|
|
95
|
+
* @since 4.0.0
|
|
26
96
|
*/
|
|
27
97
|
export declare const Bash_20241022: <Mode extends Tool.FailureMode | undefined = undefined>(args: {
|
|
28
98
|
readonly failureMode?: Mode | undefined;
|
|
@@ -39,11 +109,20 @@ export declare const Bash_20241022: <Mode extends Tool.FailureMode | undefined =
|
|
|
39
109
|
/**
|
|
40
110
|
* Anthropic Bash tool (2025-01-24 version).
|
|
41
111
|
*
|
|
112
|
+
* **When to use**
|
|
113
|
+
*
|
|
114
|
+
* Use when you need the model to execute bash commands and require the 2025-01-24
|
|
115
|
+
* version of the Anthropic computer-use beta.
|
|
116
|
+
*
|
|
117
|
+
* **Details**
|
|
118
|
+
*
|
|
42
119
|
* Allows the model to execute bash commands in a sandboxed environment.
|
|
43
120
|
* Requires the "computer-use-2025-01-24" beta header.
|
|
44
121
|
*
|
|
45
|
-
* @
|
|
122
|
+
* @see {@link Bash_20241022} for the older 2024-10-22 version of the bash tool
|
|
123
|
+
*
|
|
46
124
|
* @category Bash
|
|
125
|
+
* @since 4.0.0
|
|
47
126
|
*/
|
|
48
127
|
export declare const Bash_20250124: <Mode extends Tool.FailureMode | undefined = undefined>(args: {
|
|
49
128
|
readonly failureMode?: Mode | undefined;
|
|
@@ -58,10 +137,17 @@ export declare const Bash_20250124: <Mode extends Tool.FailureMode | undefined =
|
|
|
58
137
|
readonly failureMode: Mode extends undefined ? "error" : Mode;
|
|
59
138
|
}, true>;
|
|
60
139
|
/**
|
|
61
|
-
*
|
|
140
|
+
* Schema for a code execution request that asks Anthropic to run source code as a programmatic tool call.
|
|
141
|
+
*
|
|
142
|
+
* **When to use**
|
|
143
|
+
*
|
|
144
|
+
* Use when constructing or validating a programmatic tool call for the Anthropic
|
|
145
|
+
* Code Execution tool.
|
|
146
|
+
*
|
|
147
|
+
* @see {@link CodeExecution_20250522} for the parent tool definition
|
|
62
148
|
*
|
|
63
|
-
* @since 1.0.0
|
|
64
149
|
* @category Code Execution
|
|
150
|
+
* @since 4.0.0
|
|
65
151
|
*/
|
|
66
152
|
export declare const CodeExecutionProgrammaticToolCall: Schema.Struct<{
|
|
67
153
|
readonly type: Schema.Literal<"programmatic-tool-call">;
|
|
@@ -71,15 +157,29 @@ export declare const CodeExecutionProgrammaticToolCall: Schema.Struct<{
|
|
|
71
157
|
readonly code: Schema.String;
|
|
72
158
|
}>;
|
|
73
159
|
/**
|
|
74
|
-
*
|
|
160
|
+
* Input payload for a programmatic code execution tool call, including the source code to execute.
|
|
161
|
+
*
|
|
75
162
|
* @category Code Execution
|
|
163
|
+
* @since 4.0.0
|
|
76
164
|
*/
|
|
77
165
|
export type CodeExecutionProgrammaticToolCall = typeof CodeExecutionProgrammaticToolCall.Type;
|
|
78
166
|
/**
|
|
79
|
-
*
|
|
167
|
+
* Schema for the `bash_code_execution` input variant of Anthropic Code Execution.
|
|
168
|
+
*
|
|
169
|
+
* **When to use**
|
|
170
|
+
*
|
|
171
|
+
* Use when validating or constructing a bash command request for
|
|
172
|
+
* `CodeExecution_20250522`.
|
|
173
|
+
*
|
|
174
|
+
* **Details**
|
|
175
|
+
*
|
|
176
|
+
* The schema requires `type` to be `"bash_code_execution"` and `command` to
|
|
177
|
+
* contain the bash command sent to Anthropic.
|
|
178
|
+
*
|
|
179
|
+
* @see {@link CodeExecution_20250522} for the provider-defined tool that consumes this input variant
|
|
80
180
|
*
|
|
81
|
-
* @since 1.0.0
|
|
82
181
|
* @category Code Execution
|
|
182
|
+
* @since 4.0.0
|
|
83
183
|
*/
|
|
84
184
|
export declare const CodeExecutionBashCommand: Schema.Struct<{
|
|
85
185
|
readonly type: Schema.Literal<"bash_code_execution">;
|
|
@@ -89,15 +189,47 @@ export declare const CodeExecutionBashCommand: Schema.Struct<{
|
|
|
89
189
|
readonly command: Schema.String;
|
|
90
190
|
}>;
|
|
91
191
|
/**
|
|
92
|
-
*
|
|
192
|
+
* Input payload for a bash command routed through the Anthropic code execution tool.
|
|
193
|
+
*
|
|
194
|
+
* **When to use**
|
|
195
|
+
*
|
|
196
|
+
* Use when representing a provider-executed bash command request for the
|
|
197
|
+
* 2025-05-22 code execution tool.
|
|
198
|
+
*
|
|
199
|
+
* **Details**
|
|
200
|
+
*
|
|
201
|
+
* The payload uses `type: "bash_code_execution"` to distinguish bash execution
|
|
202
|
+
* from programmatic code and text editor operations, and `command` contains the
|
|
203
|
+
* bash command to run.
|
|
204
|
+
*
|
|
205
|
+
* @see {@link CodeExecutionProgrammaticToolCall} for programmatic code execution input
|
|
206
|
+
* @see {@link CodeExecutionTextEditorView} for viewing files through text editor code execution
|
|
207
|
+
* @see {@link CodeExecutionTextEditorCreate} for creating files through text editor code execution
|
|
208
|
+
* @see {@link CodeExecutionTextEditorStrReplace} for replacing text through text editor code execution
|
|
209
|
+
* @see {@link CodeExecution_20250522} for the provider-defined tool that consumes this payload
|
|
210
|
+
*
|
|
93
211
|
* @category Code Execution
|
|
212
|
+
* @since 4.0.0
|
|
94
213
|
*/
|
|
95
214
|
export type CodeExecutionBashCommand = typeof CodeExecutionBashCommand.Type;
|
|
96
215
|
/**
|
|
97
|
-
*
|
|
216
|
+
* Schema for a code execution text editor request that views a file by path.
|
|
217
|
+
*
|
|
218
|
+
* **When to use**
|
|
219
|
+
*
|
|
220
|
+
* Use to validate or construct the `view` command for Anthropic code execution
|
|
221
|
+
* text editor tool calls.
|
|
222
|
+
*
|
|
223
|
+
* **Details**
|
|
224
|
+
*
|
|
225
|
+
* The encoded payload uses `type: "text_editor_code_execution"`,
|
|
226
|
+
* `command: "view"`, and a `path` string.
|
|
227
|
+
*
|
|
228
|
+
* @see {@link CodeExecutionTextEditorCreate} for the command that creates a file
|
|
229
|
+
* @see {@link CodeExecutionTextEditorStrReplace} for the command that replaces text in a file
|
|
98
230
|
*
|
|
99
|
-
* @since 1.0.0
|
|
100
231
|
* @category Code Execution
|
|
232
|
+
* @since 4.0.0
|
|
101
233
|
*/
|
|
102
234
|
export declare const CodeExecutionTextEditorView: Schema.Struct<{
|
|
103
235
|
readonly type: Schema.Literal<"text_editor_code_execution">;
|
|
@@ -108,15 +240,51 @@ export declare const CodeExecutionTextEditorView: Schema.Struct<{
|
|
|
108
240
|
readonly path: Schema.String;
|
|
109
241
|
}>;
|
|
110
242
|
/**
|
|
111
|
-
*
|
|
243
|
+
* Input payload for the `view` command of Anthropic's text editor code execution tool.
|
|
244
|
+
*
|
|
245
|
+
* **When to use**
|
|
246
|
+
*
|
|
247
|
+
* Use when handling or validating the `view` command for Anthropic's text
|
|
248
|
+
* editor code execution tool.
|
|
249
|
+
*
|
|
250
|
+
* **Details**
|
|
251
|
+
*
|
|
252
|
+
* The payload is discriminated by `type: "text_editor_code_execution"` and
|
|
253
|
+
* `command: "view"`. The `path` field identifies the file to view.
|
|
254
|
+
*
|
|
255
|
+
* **Gotchas**
|
|
256
|
+
*
|
|
257
|
+
* This code execution view payload does not include `view_range`; line ranges
|
|
258
|
+
* are part of the standalone text editor view payload, not this code execution
|
|
259
|
+
* payload.
|
|
260
|
+
*
|
|
261
|
+
* @see {@link CodeExecution_20250522} for the provider-defined code execution tool that includes this payload
|
|
262
|
+
* @see {@link TextEditorViewCommand} for the standalone text editor view payload
|
|
263
|
+
*
|
|
112
264
|
* @category Code Execution
|
|
265
|
+
* @since 4.0.0
|
|
113
266
|
*/
|
|
114
267
|
export type CodeExecutionTextEditorView = typeof CodeExecutionTextEditorView.Type;
|
|
115
268
|
/**
|
|
116
|
-
*
|
|
269
|
+
* Schema for a text editor code execution request that creates a file at a path.
|
|
270
|
+
*
|
|
271
|
+
* **When to use**
|
|
272
|
+
*
|
|
273
|
+
* Use when validating or constructing an Anthropic `text_editor_code_execution`
|
|
274
|
+
* tool call that should create a file.
|
|
275
|
+
*
|
|
276
|
+
* **Details**
|
|
277
|
+
*
|
|
278
|
+
* The request is discriminated by `type: "text_editor_code_execution"` and
|
|
279
|
+
* `command: "create"`. It requires `path` and accepts optional `file_text`; the
|
|
280
|
+
* schema allows `file_text` to be omitted, `null`, or a string.
|
|
281
|
+
*
|
|
282
|
+
* @see {@link CodeExecution_20250522} for the provider-defined tool that consumes this request
|
|
283
|
+
* @see {@link CodeExecutionTextEditorView} for the matching view request
|
|
284
|
+
* @see {@link CodeExecutionTextEditorStrReplace} for the matching replace request
|
|
117
285
|
*
|
|
118
|
-
* @since 1.0.0
|
|
119
286
|
* @category Code Execution
|
|
287
|
+
* @since 4.0.0
|
|
120
288
|
*/
|
|
121
289
|
export declare const CodeExecutionTextEditorCreate: Schema.Struct<{
|
|
122
290
|
readonly type: Schema.Literal<"text_editor_code_execution">;
|
|
@@ -131,15 +299,30 @@ export declare const CodeExecutionTextEditorCreate: Schema.Struct<{
|
|
|
131
299
|
readonly file_text: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
132
300
|
}>;
|
|
133
301
|
/**
|
|
134
|
-
*
|
|
302
|
+
* Input payload for creating a file through the text editor code execution tool, optionally including initial file text.
|
|
303
|
+
*
|
|
135
304
|
* @category Code Execution
|
|
305
|
+
* @since 4.0.0
|
|
136
306
|
*/
|
|
137
307
|
export type CodeExecutionTextEditorCreate = typeof CodeExecutionTextEditorCreate.Type;
|
|
138
308
|
/**
|
|
139
|
-
*
|
|
309
|
+
* Schema for a code execution text editor request that replaces one exact string in a file.
|
|
310
|
+
*
|
|
311
|
+
* **When to use**
|
|
312
|
+
*
|
|
313
|
+
* Use when validating or constructing the `str_replace` text editor operation
|
|
314
|
+
* for the 2025-05-22 Anthropic code execution tool.
|
|
315
|
+
*
|
|
316
|
+
* **Gotchas**
|
|
317
|
+
*
|
|
318
|
+
* The `old_str` must match the file contents exactly, including whitespace and
|
|
319
|
+
* indentation, and must identify a single occurrence.
|
|
320
|
+
*
|
|
321
|
+
* @see {@link CodeExecutionTextEditorView} for reading file contents before choosing the replacement text
|
|
322
|
+
* @see {@link CodeExecution_20250522} for the provider-defined tool that consumes this payload
|
|
140
323
|
*
|
|
141
|
-
* @since 1.0.0
|
|
142
324
|
* @category Code Execution
|
|
325
|
+
* @since 4.0.0
|
|
143
326
|
*/
|
|
144
327
|
export declare const CodeExecutionTextEditorStrReplace: Schema.Struct<{
|
|
145
328
|
readonly type: Schema.Literal<"text_editor_code_execution">;
|
|
@@ -158,15 +341,24 @@ export declare const CodeExecutionTextEditorStrReplace: Schema.Struct<{
|
|
|
158
341
|
readonly new_str: Schema.String;
|
|
159
342
|
}>;
|
|
160
343
|
/**
|
|
161
|
-
*
|
|
344
|
+
* Input payload for replacing text in a file through the text editor code execution tool.
|
|
345
|
+
*
|
|
162
346
|
* @category Code Execution
|
|
347
|
+
* @since 4.0.0
|
|
163
348
|
*/
|
|
164
349
|
export type CodeExecutionTextEditorStrReplace = typeof CodeExecutionTextEditorStrReplace.Type;
|
|
165
350
|
/**
|
|
166
|
-
*
|
|
351
|
+
* Schema for the 2025-08-25 code execution tool input, containing the code to execute.
|
|
352
|
+
*
|
|
353
|
+
* **When to use**
|
|
354
|
+
*
|
|
355
|
+
* Use when validating or constructing the input payload for the 2025-08-25
|
|
356
|
+
* Anthropic code execution tool.
|
|
357
|
+
*
|
|
358
|
+
* @see {@link CodeExecution_20250825} for the provider-defined tool that consumes this schema
|
|
167
359
|
*
|
|
168
|
-
* @since 1.0.0
|
|
169
360
|
* @category Code Execution
|
|
361
|
+
* @since 4.0.0
|
|
170
362
|
*/
|
|
171
363
|
export declare const CodeExecution_20250825_Parameters: Schema.Struct<{
|
|
172
364
|
/**
|
|
@@ -175,19 +367,41 @@ export declare const CodeExecution_20250825_Parameters: Schema.Struct<{
|
|
|
175
367
|
readonly code: Schema.String;
|
|
176
368
|
}>;
|
|
177
369
|
/**
|
|
178
|
-
*
|
|
370
|
+
* Input payload for the 2025-08-25 Anthropic code execution tool.
|
|
371
|
+
*
|
|
372
|
+
* **When to use**
|
|
373
|
+
*
|
|
374
|
+
* Use when typing input passed to the 2025-08-25 Anthropic code execution tool.
|
|
375
|
+
*
|
|
376
|
+
* **Details**
|
|
377
|
+
*
|
|
378
|
+
* The payload has a single `code` field containing the source code string to
|
|
379
|
+
* execute.
|
|
380
|
+
*
|
|
381
|
+
* @see {@link CodeExecution_20250825} for the provider-defined tool that consumes this payload
|
|
382
|
+
*
|
|
179
383
|
* @category Code Execution
|
|
384
|
+
* @since 4.0.0
|
|
180
385
|
*/
|
|
181
386
|
export type CodeExecution_20250825_Parameters = typeof CodeExecution_20250825_Parameters.Type;
|
|
182
387
|
/**
|
|
183
388
|
* Anthropic Code Execution tool (2025-05-22 version).
|
|
184
389
|
*
|
|
390
|
+
* **When to use**
|
|
391
|
+
*
|
|
392
|
+
* Use when you need the model to execute code in a sandboxed environment and
|
|
393
|
+
* require the 2025-05-22 version of the Anthropic code-execution beta.
|
|
394
|
+
*
|
|
395
|
+
* **Details**
|
|
396
|
+
*
|
|
185
397
|
* Allows the model to execute code in a sandboxed environment with support
|
|
186
398
|
* for multiple execution types including programmatic tool calls, bash
|
|
187
399
|
* execution, and text editor operations.
|
|
188
400
|
*
|
|
189
|
-
* @
|
|
401
|
+
* @see {@link CodeExecutionProgrammaticToolCall} for the programmatic tool call schema
|
|
402
|
+
*
|
|
190
403
|
* @category Code Execution
|
|
404
|
+
* @since 4.0.0
|
|
191
405
|
*/
|
|
192
406
|
export declare const CodeExecution_20250522: <Mode extends Tool.FailureMode | undefined = undefined>(args: void) => Tool.ProviderDefined<"anthropic.code_execution_20250522", "AnthropicCodeExecution", {
|
|
193
407
|
readonly args: Schema.Void;
|
|
@@ -256,10 +470,21 @@ export declare const CodeExecution_20250522: <Mode extends Tool.FailureMode | un
|
|
|
256
470
|
/**
|
|
257
471
|
* Anthropic Code Execution tool (2025-08-25 version).
|
|
258
472
|
*
|
|
259
|
-
*
|
|
473
|
+
* **When to use**
|
|
474
|
+
*
|
|
475
|
+
* Use when you need the model to execute code in a sandboxed environment and
|
|
476
|
+
* require the 2025-08-25 version of the Anthropic code-execution beta.
|
|
477
|
+
*
|
|
478
|
+
* **Details**
|
|
479
|
+
*
|
|
480
|
+
* Requires the `code-execution-2025-08-25` beta header and uses
|
|
481
|
+
* `CodeExecution_20250825_Parameters` as its input schema.
|
|
482
|
+
*
|
|
483
|
+
* @see {@link CodeExecution_20250522} for the older 2025-05-22 code execution tool
|
|
484
|
+
* @see {@link CodeExecution_20250825_Parameters} for the input schema consumed by this tool
|
|
260
485
|
*
|
|
261
|
-
* @since 1.0.0
|
|
262
486
|
* @category Code Execution
|
|
487
|
+
* @since 4.0.0
|
|
263
488
|
*/
|
|
264
489
|
export declare const CodeExecution_20250825: <Mode extends Tool.FailureMode | undefined = undefined>(args: void) => Tool.ProviderDefined<"anthropic.code_execution_20250825", "AnthropicCodeExecution", {
|
|
265
490
|
readonly args: Schema.Void;
|
|
@@ -319,58 +544,103 @@ export declare const CodeExecution_20250825: <Mode extends Tool.FailureMode | un
|
|
|
319
544
|
readonly failureMode: Mode extends undefined ? "error" : Mode;
|
|
320
545
|
}, false>;
|
|
321
546
|
/**
|
|
322
|
-
*
|
|
547
|
+
* Schema for an `[x, y]` screen coordinate in pixels.
|
|
548
|
+
*
|
|
549
|
+
* **Details**
|
|
550
|
+
*
|
|
551
|
+
* This is a two-number tuple used by computer-use actions that accept screen
|
|
552
|
+
* positions.
|
|
553
|
+
*
|
|
554
|
+
* **Gotchas**
|
|
555
|
+
*
|
|
556
|
+
* This schema validates tuple shape only and does not check display bounds.
|
|
323
557
|
*
|
|
324
|
-
* @since 1.0.0
|
|
325
558
|
* @category Computer Use
|
|
559
|
+
* @since 4.0.0
|
|
326
560
|
*/
|
|
327
561
|
export declare const Coordinate: Schema.Tuple<readonly [Schema.Number, Schema.Number]>;
|
|
328
562
|
/**
|
|
329
|
-
*
|
|
563
|
+
* An `[x, y]` screen coordinate in pixels.
|
|
564
|
+
*
|
|
330
565
|
* @category Computer Use
|
|
566
|
+
* @since 4.0.0
|
|
331
567
|
*/
|
|
332
568
|
export type Coordinate = typeof Coordinate.Type;
|
|
333
569
|
/**
|
|
334
|
-
*
|
|
570
|
+
* Schema for an `[x1, y1, x2, y2]` screen region in pixels.
|
|
571
|
+
*
|
|
572
|
+
* **Details**
|
|
573
|
+
*
|
|
574
|
+
* The tuple represents top-left and bottom-right corners.
|
|
575
|
+
*
|
|
576
|
+
* **Gotchas**
|
|
577
|
+
*
|
|
578
|
+
* This schema validates four numbers only and does not check coordinate ordering
|
|
579
|
+
* or display bounds.
|
|
335
580
|
*
|
|
336
|
-
* @since 1.0.0
|
|
337
581
|
* @category Computer Use
|
|
582
|
+
* @since 4.0.0
|
|
338
583
|
*/
|
|
339
584
|
export declare const Region: Schema.Tuple<readonly [Schema.Number, Schema.Number, Schema.Number, Schema.Number]>;
|
|
340
585
|
/**
|
|
341
|
-
*
|
|
586
|
+
* An `[x1, y1, x2, y2]` screen region in pixels, from top-left to bottom-right.
|
|
587
|
+
*
|
|
342
588
|
* @category Computer Use
|
|
589
|
+
* @since 4.0.0
|
|
343
590
|
*/
|
|
344
591
|
export type Region = typeof Region.Type;
|
|
345
592
|
/**
|
|
346
|
-
*
|
|
593
|
+
* Scroll direction literal: `"up"`, `"down"`, `"left"`, or `"right"`.
|
|
594
|
+
*
|
|
595
|
+
* @see {@link ComputerUseScrollAction} for the action payload that consumes this schema
|
|
347
596
|
*
|
|
348
|
-
* @since 1.0.0
|
|
349
597
|
* @category Computer Use
|
|
598
|
+
* @since 4.0.0
|
|
350
599
|
*/
|
|
351
600
|
export declare const ScrollDirection: Schema.Literals<readonly ["up", "down", "left", "right"]>;
|
|
352
601
|
/**
|
|
353
|
-
*
|
|
602
|
+
* Direction used by computer-use scroll actions: `"up"`, `"down"`, `"left"`, or `"right"`.
|
|
603
|
+
*
|
|
354
604
|
* @category Computer Use
|
|
605
|
+
* @since 4.0.0
|
|
355
606
|
*/
|
|
356
607
|
export type ScrollDirection = typeof ScrollDirection.Type;
|
|
357
608
|
/**
|
|
358
|
-
* Modifier
|
|
609
|
+
* Modifier key literal.
|
|
610
|
+
*
|
|
611
|
+
* **Details**
|
|
612
|
+
*
|
|
613
|
+
* Allowed values are `"alt"`, `"ctrl"`, `"meta"`, and `"shift"`.
|
|
359
614
|
*
|
|
360
|
-
* @since 1.0.0
|
|
361
615
|
* @category Computer Use
|
|
616
|
+
* @since 4.0.0
|
|
362
617
|
*/
|
|
363
618
|
export declare const ModifierKey: Schema.Literals<readonly ["alt", "ctrl", "meta", "shift"]>;
|
|
364
619
|
/**
|
|
365
|
-
*
|
|
620
|
+
* Modifier key literal.
|
|
621
|
+
*
|
|
622
|
+
* **Details**
|
|
623
|
+
*
|
|
624
|
+
* Allowed values are `"alt"`, `"ctrl"`, `"meta"`, and `"shift"`.
|
|
625
|
+
*
|
|
366
626
|
* @category Computer Use
|
|
627
|
+
* @since 4.0.0
|
|
367
628
|
*/
|
|
368
629
|
export type ModifierKey = typeof ModifierKey.Type;
|
|
369
630
|
/**
|
|
370
|
-
*
|
|
631
|
+
* Schema for a computer-use action that presses a key or key combination, such
|
|
632
|
+
* as `"Return"`, `"ctrl+c"`, or `"ctrl+s"`.
|
|
633
|
+
*
|
|
634
|
+
* **When to use**
|
|
635
|
+
*
|
|
636
|
+
* Use when validating or constructing a computer-use action for keyboard
|
|
637
|
+
* shortcuts or non-text key presses.
|
|
638
|
+
*
|
|
639
|
+
* @see {@link TypeAction} for entering ordinary text strings
|
|
640
|
+
* @see {@link ComputerUseHoldKeyAction} for holding a key for a duration
|
|
371
641
|
*
|
|
372
|
-
* @since 1.0.0
|
|
373
642
|
* @category Computer Use
|
|
643
|
+
* @since 4.0.0
|
|
374
644
|
*/
|
|
375
645
|
export declare const ComputerUseKeyAction: Schema.Struct<{
|
|
376
646
|
readonly action: Schema.Literal<"key">;
|
|
@@ -380,15 +650,47 @@ export declare const ComputerUseKeyAction: Schema.Struct<{
|
|
|
380
650
|
readonly text: Schema.String;
|
|
381
651
|
}>;
|
|
382
652
|
/**
|
|
383
|
-
*
|
|
653
|
+
* Computer-use action payload for pressing a key or key combination.
|
|
654
|
+
*
|
|
655
|
+
* **Details**
|
|
656
|
+
*
|
|
657
|
+
* The payload uses `action: "key"` and stores the key or key combination to
|
|
658
|
+
* press in `text`, such as `"Return"`, `"ctrl+c"`, or `"ctrl+s"`.
|
|
659
|
+
*
|
|
660
|
+
* **Gotchas**
|
|
661
|
+
*
|
|
662
|
+
* `text` is typed as `string`; the paired schema does not validate
|
|
663
|
+
* provider-specific key names or key combinations.
|
|
664
|
+
*
|
|
384
665
|
* @category Computer Use
|
|
666
|
+
* @since 4.0.0
|
|
385
667
|
*/
|
|
386
668
|
export type ComputerUseKeyAction = typeof ComputerUseKeyAction.Type;
|
|
387
669
|
/**
|
|
388
|
-
*
|
|
670
|
+
* Schema for a computer-use action that performs a left click.
|
|
671
|
+
*
|
|
672
|
+
* **When to use**
|
|
673
|
+
*
|
|
674
|
+
* Use to validate or construct an Anthropic computer-use payload for clicking
|
|
675
|
+
* once at the current mouse position or at a specific screen coordinate.
|
|
676
|
+
*
|
|
677
|
+
* **Details**
|
|
678
|
+
*
|
|
679
|
+
* The encoded payload uses `action: "left_click"`. The optional `coordinate`
|
|
680
|
+
* field supplies the `[x, y]` pixel position; when omitted, the action uses the
|
|
681
|
+
* current mouse position.
|
|
682
|
+
*
|
|
683
|
+
* **Gotchas**
|
|
684
|
+
*
|
|
685
|
+
* The coordinate schema only checks that the value is a two-number tuple. It
|
|
686
|
+
* does not validate that the point falls within the configured display
|
|
687
|
+
* dimensions.
|
|
688
|
+
*
|
|
689
|
+
* @see {@link ComputerUseDoubleClickAction} for performing a double click
|
|
690
|
+
* @see {@link ComputerUseMouseMoveAction} for moving the mouse without clicking
|
|
389
691
|
*
|
|
390
|
-
* @since 1.0.0
|
|
391
692
|
* @category Computer Use
|
|
693
|
+
* @since 4.0.0
|
|
392
694
|
*/
|
|
393
695
|
export declare const ComputerUseLeftClickAction: Schema.Struct<{
|
|
394
696
|
readonly action: Schema.Literal<"left_click">;
|
|
@@ -399,15 +701,34 @@ export declare const ComputerUseLeftClickAction: Schema.Struct<{
|
|
|
399
701
|
readonly coordinate: Schema.optional<Schema.Tuple<readonly [Schema.Number, Schema.Number]>>;
|
|
400
702
|
}>;
|
|
401
703
|
/**
|
|
402
|
-
*
|
|
704
|
+
* Computer-use action payload for performing a left click, optionally at a specific coordinate.
|
|
705
|
+
*
|
|
403
706
|
* @category Computer Use
|
|
707
|
+
* @since 4.0.0
|
|
404
708
|
*/
|
|
405
709
|
export type ComputerUseLeftClickAction = typeof ComputerUseLeftClickAction.Type;
|
|
406
710
|
/**
|
|
407
|
-
*
|
|
711
|
+
* Schema for a computer-use action that moves the mouse cursor to a required
|
|
712
|
+
* `[x, y]` screen coordinate.
|
|
713
|
+
*
|
|
714
|
+
* **When to use**
|
|
715
|
+
*
|
|
716
|
+
* Use to validate or construct a mouse movement action for an Anthropic
|
|
717
|
+
* computer-use tool call.
|
|
718
|
+
*
|
|
719
|
+
* **Details**
|
|
720
|
+
*
|
|
721
|
+
* The encoded payload has action `"mouse_move"` and a required `coordinate`
|
|
722
|
+
* field containing the target `[x, y]` pixel position.
|
|
723
|
+
*
|
|
724
|
+
* **Gotchas**
|
|
725
|
+
*
|
|
726
|
+
* The coordinate schema only checks that the value is a two-number tuple. It
|
|
727
|
+
* does not validate that the point falls within the configured display
|
|
728
|
+
* dimensions.
|
|
408
729
|
*
|
|
409
|
-
* @since 1.0.0
|
|
410
730
|
* @category Computer Use
|
|
731
|
+
* @since 4.0.0
|
|
411
732
|
*/
|
|
412
733
|
export declare const ComputerUseMouseMoveAction: Schema.Struct<{
|
|
413
734
|
readonly action: Schema.Literal<"mouse_move">;
|
|
@@ -417,29 +738,57 @@ export declare const ComputerUseMouseMoveAction: Schema.Struct<{
|
|
|
417
738
|
readonly coordinate: Schema.Tuple<readonly [Schema.Number, Schema.Number]>;
|
|
418
739
|
}>;
|
|
419
740
|
/**
|
|
420
|
-
*
|
|
741
|
+
* Computer-use action payload for moving the mouse cursor to a specific coordinate.
|
|
742
|
+
*
|
|
421
743
|
* @category Computer Use
|
|
744
|
+
* @since 4.0.0
|
|
422
745
|
*/
|
|
423
746
|
export type ComputerUseMouseMoveAction = typeof ComputerUseMouseMoveAction.Type;
|
|
424
747
|
/**
|
|
425
|
-
*
|
|
748
|
+
* Schema for a computer-use action that requests a screenshot of the current display.
|
|
749
|
+
*
|
|
750
|
+
* **When to use**
|
|
751
|
+
*
|
|
752
|
+
* Use to validate or construct a computer-use tool action that asks the handler
|
|
753
|
+
* to capture the full current display.
|
|
754
|
+
*
|
|
755
|
+
* **Details**
|
|
756
|
+
*
|
|
757
|
+
* The payload contains only `action: "screenshot"` and does not include
|
|
758
|
+
* coordinates or other options.
|
|
759
|
+
*
|
|
760
|
+
* @see {@link ComputerUseZoomAction} for requesting a zoomed-in screenshot of a specific screen region with the 2025-11-24 computer-use tool
|
|
426
761
|
*
|
|
427
|
-
* @since 1.0.0
|
|
428
762
|
* @category Computer Use
|
|
763
|
+
* @since 4.0.0
|
|
429
764
|
*/
|
|
430
765
|
export declare const ComputerUseScreenshotAction: Schema.Struct<{
|
|
431
766
|
readonly action: Schema.Literal<"screenshot">;
|
|
432
767
|
}>;
|
|
433
768
|
/**
|
|
434
|
-
*
|
|
769
|
+
* Computer-use action payload for capturing the current display.
|
|
770
|
+
*
|
|
435
771
|
* @category Computer Use
|
|
772
|
+
* @since 4.0.0
|
|
436
773
|
*/
|
|
437
774
|
export type ComputerUseScreenshotAction = typeof ComputerUseScreenshotAction.Type;
|
|
438
775
|
/**
|
|
439
|
-
*
|
|
776
|
+
* Schema for a computer-use action that enters text.
|
|
777
|
+
*
|
|
778
|
+
* **When to use**
|
|
779
|
+
*
|
|
780
|
+
* Use to validate or construct a computer-use action for entering ordinary text
|
|
781
|
+
* strings.
|
|
782
|
+
*
|
|
783
|
+
* **Details**
|
|
784
|
+
*
|
|
785
|
+
* The payload uses `action: "type"` and a `text` string containing the text to
|
|
786
|
+
* enter.
|
|
787
|
+
*
|
|
788
|
+
* @see {@link ComputerUseKeyAction} for key presses and keyboard shortcuts
|
|
440
789
|
*
|
|
441
|
-
* @since 1.0.0
|
|
442
790
|
* @category Computer Use
|
|
791
|
+
* @since 4.0.0
|
|
443
792
|
*/
|
|
444
793
|
export declare const TypeAction: Schema.Struct<{
|
|
445
794
|
readonly action: Schema.Literal<"type">;
|
|
@@ -449,15 +798,41 @@ export declare const TypeAction: Schema.Struct<{
|
|
|
449
798
|
readonly text: Schema.String;
|
|
450
799
|
}>;
|
|
451
800
|
/**
|
|
452
|
-
*
|
|
801
|
+
* Computer-use action payload for typing a text string.
|
|
802
|
+
*
|
|
803
|
+
* **Details**
|
|
804
|
+
*
|
|
805
|
+
* The payload uses `action: "type"` and a `text` string containing the text to
|
|
806
|
+
* enter.
|
|
807
|
+
*
|
|
453
808
|
* @category Computer Use
|
|
809
|
+
* @since 4.0.0
|
|
454
810
|
*/
|
|
455
811
|
export type TypeAction = typeof TypeAction.Type;
|
|
456
812
|
/**
|
|
457
|
-
*
|
|
813
|
+
* Schema for a computer-use action that performs a double click.
|
|
814
|
+
*
|
|
815
|
+
* **When to use**
|
|
816
|
+
*
|
|
817
|
+
* Use to validate or construct an Anthropic computer-use payload for double
|
|
818
|
+
* clicking at the current mouse position or at a specific screen coordinate.
|
|
819
|
+
*
|
|
820
|
+
* **Details**
|
|
821
|
+
*
|
|
822
|
+
* The encoded payload uses `action: "double_click"`. The optional
|
|
823
|
+
* `coordinate` field supplies the `[x, y]` pixel position; when omitted, the
|
|
824
|
+
* action uses the current mouse position.
|
|
825
|
+
*
|
|
826
|
+
* **Gotchas**
|
|
827
|
+
*
|
|
828
|
+
* The coordinate schema only checks that the value is a two-number tuple. It
|
|
829
|
+
* does not validate that the point falls within the configured display
|
|
830
|
+
* dimensions.
|
|
831
|
+
*
|
|
832
|
+
* @see {@link ComputerUseLeftClickAction} for performing a single left click
|
|
458
833
|
*
|
|
459
|
-
* @since 1.0.0
|
|
460
834
|
* @category Computer Use
|
|
835
|
+
* @since 4.0.0
|
|
461
836
|
*/
|
|
462
837
|
export declare const ComputerUseDoubleClickAction: Schema.Struct<{
|
|
463
838
|
readonly action: Schema.Literal<"double_click">;
|
|
@@ -468,15 +843,36 @@ export declare const ComputerUseDoubleClickAction: Schema.Struct<{
|
|
|
468
843
|
readonly coordinate: Schema.optional<Schema.Tuple<readonly [Schema.Number, Schema.Number]>>;
|
|
469
844
|
}>;
|
|
470
845
|
/**
|
|
471
|
-
*
|
|
846
|
+
* Computer-use action payload for performing a double click, optionally at a specific coordinate.
|
|
847
|
+
*
|
|
472
848
|
* @category Computer Use
|
|
849
|
+
* @since 4.0.0
|
|
473
850
|
*/
|
|
474
851
|
export type ComputerUseDoubleClickAction = typeof ComputerUseDoubleClickAction.Type;
|
|
475
852
|
/**
|
|
476
|
-
*
|
|
853
|
+
* Hold a key for a specified duration during computer-use execution.
|
|
854
|
+
*
|
|
855
|
+
* **When to use**
|
|
856
|
+
*
|
|
857
|
+
* Use to keep a keyboard key depressed for a fixed number of seconds in a
|
|
858
|
+
* computer-use action sequence.
|
|
859
|
+
*
|
|
860
|
+
* **Details**
|
|
861
|
+
*
|
|
862
|
+
* The schema describes objects with `action: "hold_key"`, a `text` field
|
|
863
|
+
* containing the key to hold, and a `duration` field containing the number of
|
|
864
|
+
* seconds to hold it.
|
|
865
|
+
*
|
|
866
|
+
* **Gotchas**
|
|
867
|
+
*
|
|
868
|
+
* The schema only checks that `duration` is a number; it does not require a
|
|
869
|
+
* positive value.
|
|
870
|
+
*
|
|
871
|
+
* @see {@link ComputerUseKeyAction} for pressing a key or key combination without holding it
|
|
872
|
+
* @see {@link ComputerUseWaitAction} for pausing between actions without holding a key
|
|
477
873
|
*
|
|
478
|
-
* @since 1.0.0
|
|
479
874
|
* @category Computer Use
|
|
875
|
+
* @since 4.0.0
|
|
480
876
|
*/
|
|
481
877
|
export declare const ComputerUseHoldKeyAction: Schema.Struct<{
|
|
482
878
|
readonly action: Schema.Literal<"hold_key">;
|
|
@@ -490,15 +886,47 @@ export declare const ComputerUseHoldKeyAction: Schema.Struct<{
|
|
|
490
886
|
readonly duration: Schema.Number;
|
|
491
887
|
}>;
|
|
492
888
|
/**
|
|
493
|
-
*
|
|
889
|
+
* Computer-use action payload for holding a key for a specified duration.
|
|
890
|
+
*
|
|
891
|
+
* **When to use**
|
|
892
|
+
*
|
|
893
|
+
* Use to represent a key that should remain pressed for a measured interval.
|
|
894
|
+
*
|
|
895
|
+
* **Details**
|
|
896
|
+
*
|
|
897
|
+
* Set `action` to `"hold_key"`, `text` to the key to hold, and `duration` to
|
|
898
|
+
* the number of seconds to hold it.
|
|
899
|
+
*
|
|
900
|
+
* @see {@link ComputerUseKeyAction} for a single key press or key combination without a hold duration
|
|
901
|
+
*
|
|
494
902
|
* @category Computer Use
|
|
903
|
+
* @since 4.0.0
|
|
495
904
|
*/
|
|
496
905
|
export type ComputerUseHoldKeyAction = typeof ComputerUseHoldKeyAction.Type;
|
|
497
906
|
/**
|
|
498
|
-
*
|
|
907
|
+
* Schema for a computer-use action that drags with the left mouse button.
|
|
908
|
+
*
|
|
909
|
+
* **When to use**
|
|
910
|
+
*
|
|
911
|
+
* Use to validate or construct an Anthropic computer-use payload for dragging
|
|
912
|
+
* from one screen coordinate to another in a single action.
|
|
913
|
+
*
|
|
914
|
+
* **Details**
|
|
915
|
+
*
|
|
916
|
+
* The encoded payload uses `action: "left_click_drag"` and requires both
|
|
917
|
+
* `start_coordinate` and `coordinate` as `[x, y]` pixel positions.
|
|
918
|
+
*
|
|
919
|
+
* **Gotchas**
|
|
920
|
+
*
|
|
921
|
+
* The coordinate schema only checks that each value is a two-number tuple. It
|
|
922
|
+
* does not validate that either point falls within the configured display
|
|
923
|
+
* dimensions.
|
|
924
|
+
*
|
|
925
|
+
* @see {@link ComputerUseLeftMouseDownAction} for starting a manual drag sequence
|
|
926
|
+
* @see {@link ComputerUseLeftMouseUpAction} for ending a manual drag sequence
|
|
499
927
|
*
|
|
500
|
-
* @since 1.0.0
|
|
501
928
|
* @category Computer Use
|
|
929
|
+
* @since 4.0.0
|
|
502
930
|
*/
|
|
503
931
|
export declare const ComputerUseLeftClickDragAction: Schema.Struct<{
|
|
504
932
|
readonly action: Schema.Literal<"left_click_drag">;
|
|
@@ -512,17 +940,21 @@ export declare const ComputerUseLeftClickDragAction: Schema.Struct<{
|
|
|
512
940
|
readonly coordinate: Schema.Tuple<readonly [Schema.Number, Schema.Number]>;
|
|
513
941
|
}>;
|
|
514
942
|
/**
|
|
515
|
-
*
|
|
943
|
+
* Computer-use action payload for dragging from a start coordinate to an end coordinate.
|
|
944
|
+
*
|
|
516
945
|
* @category Computer Use
|
|
946
|
+
* @since 4.0.0
|
|
517
947
|
*/
|
|
518
948
|
export type ComputerUseLeftClickDragAction = typeof ComputerUseLeftClickDragAction.Type;
|
|
519
949
|
/**
|
|
520
950
|
* Press the left mouse button down (without releasing).
|
|
521
951
|
*
|
|
522
|
-
*
|
|
952
|
+
* **When to use**
|
|
953
|
+
*
|
|
954
|
+
* Use when you use this for fine-grained click control.
|
|
523
955
|
*
|
|
524
|
-
* @since 1.0.0
|
|
525
956
|
* @category Computer Use
|
|
957
|
+
* @since 4.0.0
|
|
526
958
|
*/
|
|
527
959
|
export declare const ComputerUseLeftMouseDownAction: Schema.Struct<{
|
|
528
960
|
readonly action: Schema.Literal<"left_mouse_down">;
|
|
@@ -533,17 +965,21 @@ export declare const ComputerUseLeftMouseDownAction: Schema.Struct<{
|
|
|
533
965
|
readonly coordinate: Schema.optional<Schema.Tuple<readonly [Schema.Number, Schema.Number]>>;
|
|
534
966
|
}>;
|
|
535
967
|
/**
|
|
536
|
-
*
|
|
968
|
+
* Computer-use action payload for pressing and holding the left mouse button, optionally at a specific coordinate.
|
|
969
|
+
*
|
|
537
970
|
* @category Computer Use
|
|
971
|
+
* @since 4.0.0
|
|
538
972
|
*/
|
|
539
973
|
export type ComputerUseLeftMouseDownAction = typeof ComputerUseLeftMouseDownAction.Type;
|
|
540
974
|
/**
|
|
541
975
|
* Release the left mouse button.
|
|
542
976
|
*
|
|
543
|
-
*
|
|
977
|
+
* **When to use**
|
|
978
|
+
*
|
|
979
|
+
* Use when you use this for fine-grained click control.
|
|
544
980
|
*
|
|
545
|
-
* @since 1.0.0
|
|
546
981
|
* @category Computer Use
|
|
982
|
+
* @since 4.0.0
|
|
547
983
|
*/
|
|
548
984
|
export declare const ComputerUseLeftMouseUpAction: Schema.Struct<{
|
|
549
985
|
readonly action: Schema.Literal<"left_mouse_up">;
|
|
@@ -554,15 +990,36 @@ export declare const ComputerUseLeftMouseUpAction: Schema.Struct<{
|
|
|
554
990
|
readonly coordinate: Schema.optional<Schema.Tuple<readonly [Schema.Number, Schema.Number]>>;
|
|
555
991
|
}>;
|
|
556
992
|
/**
|
|
557
|
-
*
|
|
993
|
+
* Computer-use action payload for releasing the left mouse button, optionally at a specific coordinate.
|
|
994
|
+
*
|
|
558
995
|
* @category Computer Use
|
|
996
|
+
* @since 4.0.0
|
|
559
997
|
*/
|
|
560
998
|
export type ComputerUseLeftMouseUpAction = typeof ComputerUseLeftMouseUpAction.Type;
|
|
561
999
|
/**
|
|
562
|
-
*
|
|
1000
|
+
* Schema for a computer-use action that performs a middle click.
|
|
1001
|
+
*
|
|
1002
|
+
* **When to use**
|
|
1003
|
+
*
|
|
1004
|
+
* Use to validate or construct a middle-button click action for Anthropic
|
|
1005
|
+
* computer use, optionally targeting a specific screen coordinate.
|
|
1006
|
+
*
|
|
1007
|
+
* **Details**
|
|
1008
|
+
*
|
|
1009
|
+
* The payload must use `action: "middle_click"`. When `coordinate` is omitted,
|
|
1010
|
+
* the click occurs at the current mouse position.
|
|
1011
|
+
*
|
|
1012
|
+
* **Gotchas**
|
|
1013
|
+
*
|
|
1014
|
+
* This action is available in the 2025-01-24 computer-use action set and later;
|
|
1015
|
+
* it is not part of `ComputerUse_20241022`.
|
|
1016
|
+
*
|
|
1017
|
+
* @see {@link ComputerUse_20250124} for the provider-defined tool version that first accepts this action
|
|
1018
|
+
* @see {@link ComputerUseLeftClickAction} for primary-button clicks
|
|
1019
|
+
* @see {@link ComputerUseRightClickAction} for secondary-button clicks
|
|
563
1020
|
*
|
|
564
|
-
* @since 1.0.0
|
|
565
1021
|
* @category Computer Use
|
|
1022
|
+
* @since 4.0.0
|
|
566
1023
|
*/
|
|
567
1024
|
export declare const ComputerUseMiddleClickAction: Schema.Struct<{
|
|
568
1025
|
readonly action: Schema.Literal<"middle_click">;
|
|
@@ -573,15 +1030,32 @@ export declare const ComputerUseMiddleClickAction: Schema.Struct<{
|
|
|
573
1030
|
readonly coordinate: Schema.optional<Schema.Tuple<readonly [Schema.Number, Schema.Number]>>;
|
|
574
1031
|
}>;
|
|
575
1032
|
/**
|
|
576
|
-
*
|
|
1033
|
+
* Computer-use action payload for performing a middle click, optionally at a specific coordinate.
|
|
1034
|
+
*
|
|
577
1035
|
* @category Computer Use
|
|
1036
|
+
* @since 4.0.0
|
|
578
1037
|
*/
|
|
579
1038
|
export type ComputerUseMiddleClickAction = typeof ComputerUseMiddleClickAction.Type;
|
|
580
1039
|
/**
|
|
581
|
-
*
|
|
1040
|
+
* Schema for a computer-use action that performs a right click, optionally at a
|
|
1041
|
+
* specific screen coordinate.
|
|
1042
|
+
*
|
|
1043
|
+
* **When to use**
|
|
1044
|
+
*
|
|
1045
|
+
* Use to validate or construct the `right_click` action for an Anthropic
|
|
1046
|
+
* computer-use tool call.
|
|
1047
|
+
*
|
|
1048
|
+
* **Details**
|
|
1049
|
+
*
|
|
1050
|
+
* The optional `coordinate` field is an `[x, y]` screen coordinate in pixels.
|
|
1051
|
+
* When omitted, the right click is performed at the current mouse position.
|
|
1052
|
+
*
|
|
1053
|
+
* @see {@link ComputerUse_20250124} for the provider-defined computer-use tool version that introduced this action
|
|
1054
|
+
* @see {@link ComputerUseLeftClickAction} for the corresponding left-click action
|
|
1055
|
+
* @see {@link ComputerUseMiddleClickAction} for the corresponding middle-click action
|
|
582
1056
|
*
|
|
583
|
-
* @since 1.0.0
|
|
584
1057
|
* @category Computer Use
|
|
1058
|
+
* @since 4.0.0
|
|
585
1059
|
*/
|
|
586
1060
|
export declare const ComputerUseRightClickAction: Schema.Struct<{
|
|
587
1061
|
readonly action: Schema.Literal<"right_click">;
|
|
@@ -592,15 +1066,34 @@ export declare const ComputerUseRightClickAction: Schema.Struct<{
|
|
|
592
1066
|
readonly coordinate: Schema.optional<Schema.Tuple<readonly [Schema.Number, Schema.Number]>>;
|
|
593
1067
|
}>;
|
|
594
1068
|
/**
|
|
595
|
-
*
|
|
1069
|
+
* Computer-use action payload for performing a right click, optionally at a specific coordinate.
|
|
1070
|
+
*
|
|
596
1071
|
* @category Computer Use
|
|
1072
|
+
* @since 4.0.0
|
|
597
1073
|
*/
|
|
598
1074
|
export type ComputerUseRightClickAction = typeof ComputerUseRightClickAction.Type;
|
|
599
1075
|
/**
|
|
600
|
-
*
|
|
1076
|
+
* Schema for a computer-use scroll action.
|
|
1077
|
+
*
|
|
1078
|
+
* **When to use**
|
|
1079
|
+
*
|
|
1080
|
+
* Use when validating or constructing Anthropic computer-use scroll payloads.
|
|
1081
|
+
*
|
|
1082
|
+
* **Details**
|
|
1083
|
+
*
|
|
1084
|
+
* The encoded payload uses `action: "scroll"`, an optional `coordinate`,
|
|
1085
|
+
* `scroll_direction`, and `scroll_amount`.
|
|
1086
|
+
*
|
|
1087
|
+
* **Gotchas**
|
|
1088
|
+
*
|
|
1089
|
+
* `coordinate` only checks a two-number tuple, and `scroll_amount` is only
|
|
1090
|
+
* `Schema.Number`.
|
|
1091
|
+
*
|
|
1092
|
+
* @see {@link ComputerUse_20250124} for the tool version that accepts this action
|
|
1093
|
+
* @see {@link ScrollDirection} for the accepted direction literals
|
|
601
1094
|
*
|
|
602
|
-
* @since 1.0.0
|
|
603
1095
|
* @category Computer Use
|
|
1096
|
+
* @since 4.0.0
|
|
604
1097
|
*/
|
|
605
1098
|
export declare const ComputerUseScrollAction: Schema.Struct<{
|
|
606
1099
|
readonly action: Schema.Literal<"scroll">;
|
|
@@ -619,15 +1112,36 @@ export declare const ComputerUseScrollAction: Schema.Struct<{
|
|
|
619
1112
|
readonly scroll_amount: Schema.Number;
|
|
620
1113
|
}>;
|
|
621
1114
|
/**
|
|
622
|
-
*
|
|
1115
|
+
* Computer-use action payload for scrolling by a specified amount in a specified direction, optionally from a coordinate.
|
|
1116
|
+
*
|
|
623
1117
|
* @category Computer Use
|
|
1118
|
+
* @since 4.0.0
|
|
624
1119
|
*/
|
|
625
1120
|
export type ComputerUseScrollAction = typeof ComputerUseScrollAction.Type;
|
|
626
1121
|
/**
|
|
627
|
-
*
|
|
1122
|
+
* Schema for a computer-use triple-click action.
|
|
1123
|
+
*
|
|
1124
|
+
* **When to use**
|
|
1125
|
+
*
|
|
1126
|
+
* Use when validating or constructing Anthropic computer-use triple-click
|
|
1127
|
+
* payloads at the current pointer position or an optional coordinate.
|
|
1128
|
+
*
|
|
1129
|
+
* **Details**
|
|
1130
|
+
*
|
|
1131
|
+
* The encoded payload uses `action: "triple_click"` and an optional
|
|
1132
|
+
* `coordinate`.
|
|
1133
|
+
*
|
|
1134
|
+
* **Gotchas**
|
|
1135
|
+
*
|
|
1136
|
+
* `coordinate` only validates as a two-number tuple and does not check display
|
|
1137
|
+
* bounds.
|
|
1138
|
+
*
|
|
1139
|
+
* @see {@link ComputerUse_20250124} for the tool version that accepts this action
|
|
1140
|
+
* @see {@link ComputerUseDoubleClickAction} for the two-click variant
|
|
1141
|
+
* @see {@link ComputerUseLeftClickAction} for a single left click
|
|
628
1142
|
*
|
|
629
|
-
* @since 1.0.0
|
|
630
1143
|
* @category Computer Use
|
|
1144
|
+
* @since 4.0.0
|
|
631
1145
|
*/
|
|
632
1146
|
export declare const ComputerUseTripleClickAction: Schema.Struct<{
|
|
633
1147
|
readonly action: Schema.Literal<"triple_click">;
|
|
@@ -638,15 +1152,35 @@ export declare const ComputerUseTripleClickAction: Schema.Struct<{
|
|
|
638
1152
|
readonly coordinate: Schema.optional<Schema.Tuple<readonly [Schema.Number, Schema.Number]>>;
|
|
639
1153
|
}>;
|
|
640
1154
|
/**
|
|
641
|
-
*
|
|
1155
|
+
* Computer-use action payload for performing a triple click, optionally at a specific coordinate.
|
|
1156
|
+
*
|
|
642
1157
|
* @category Computer Use
|
|
1158
|
+
* @since 4.0.0
|
|
643
1159
|
*/
|
|
644
1160
|
export type ComputerUseTripleClickAction = typeof ComputerUseTripleClickAction.Type;
|
|
645
1161
|
/**
|
|
646
|
-
*
|
|
1162
|
+
* Schema for a computer-use wait action.
|
|
1163
|
+
*
|
|
1164
|
+
* **When to use**
|
|
1165
|
+
*
|
|
1166
|
+
* Use when validating or constructing Anthropic computer-use payloads that pause
|
|
1167
|
+
* between actions.
|
|
1168
|
+
*
|
|
1169
|
+
* **Details**
|
|
1170
|
+
*
|
|
1171
|
+
* The encoded payload uses `action: "wait"` and a required `duration` in
|
|
1172
|
+
* seconds.
|
|
1173
|
+
*
|
|
1174
|
+
* **Gotchas**
|
|
1175
|
+
*
|
|
1176
|
+
* `duration` is only `Schema.Number`; it is not constrained to positive or
|
|
1177
|
+
* finite values.
|
|
1178
|
+
*
|
|
1179
|
+
* @see {@link ComputerUseHoldKeyAction} for another duration-based computer-use action
|
|
1180
|
+
* @see {@link ComputerUse_20250124} for the tool version that accepts this action
|
|
647
1181
|
*
|
|
648
|
-
* @since 1.0.0
|
|
649
1182
|
* @category Computer Use
|
|
1183
|
+
* @since 4.0.0
|
|
650
1184
|
*/
|
|
651
1185
|
export declare const ComputerUseWaitAction: Schema.Struct<{
|
|
652
1186
|
readonly action: Schema.Literal<"wait">;
|
|
@@ -656,17 +1190,29 @@ export declare const ComputerUseWaitAction: Schema.Struct<{
|
|
|
656
1190
|
readonly duration: Schema.Number;
|
|
657
1191
|
}>;
|
|
658
1192
|
/**
|
|
659
|
-
*
|
|
1193
|
+
* Computer-use action payload for pausing for a specified duration.
|
|
1194
|
+
*
|
|
660
1195
|
* @category Computer Use
|
|
1196
|
+
* @since 4.0.0
|
|
661
1197
|
*/
|
|
662
1198
|
export type ComputerUseWaitAction = typeof ComputerUseWaitAction.Type;
|
|
663
1199
|
/**
|
|
664
1200
|
* Zoom into a specific region of the screen at full resolution.
|
|
665
1201
|
*
|
|
666
|
-
*
|
|
1202
|
+
* **Details**
|
|
1203
|
+
*
|
|
1204
|
+
* The encoded payload uses `action: "zoom"` and a `region` tuple.
|
|
1205
|
+
*
|
|
1206
|
+
* **Gotchas**
|
|
1207
|
+
*
|
|
1208
|
+
* Requires `enableZoom: true` in the tool definition. `region` is only a
|
|
1209
|
+
* four-number tuple and does not validate corner ordering or display bounds.
|
|
1210
|
+
*
|
|
1211
|
+
* @see {@link ComputerUse_20251124} for the tool version that accepts this action
|
|
1212
|
+
* @see {@link ComputerUseScreenshotAction} for capturing the full screen instead
|
|
667
1213
|
*
|
|
668
|
-
* @since 1.0.0
|
|
669
1214
|
* @category Computer Use
|
|
1215
|
+
* @since 4.0.0
|
|
670
1216
|
*/
|
|
671
1217
|
export declare const ComputerUseZoomAction: Schema.Struct<{
|
|
672
1218
|
readonly action: Schema.Literal<"zoom">;
|
|
@@ -677,19 +1223,28 @@ export declare const ComputerUseZoomAction: Schema.Struct<{
|
|
|
677
1223
|
readonly region: Schema.Tuple<readonly [Schema.Number, Schema.Number, Schema.Number, Schema.Number]>;
|
|
678
1224
|
}>;
|
|
679
1225
|
/**
|
|
680
|
-
*
|
|
1226
|
+
* Computer-use action payload for zooming into a specific screen region.
|
|
1227
|
+
*
|
|
1228
|
+
* **Gotchas**
|
|
1229
|
+
*
|
|
1230
|
+
* The enclosing computer-use tool must be configured with `enableZoom: true`.
|
|
1231
|
+
* `region` is only a four-number tuple and does not validate corner ordering or
|
|
1232
|
+
* display bounds.
|
|
1233
|
+
*
|
|
681
1234
|
* @category Computer Use
|
|
1235
|
+
* @since 4.0.0
|
|
682
1236
|
*/
|
|
683
1237
|
export type ComputerUseZoomAction = typeof ComputerUseZoomAction.Type;
|
|
684
1238
|
/**
|
|
685
1239
|
* Computer use tool for Claude 3.5 Sonnet v2 (deprecated).
|
|
686
1240
|
*
|
|
687
|
-
*
|
|
1241
|
+
* **Details**
|
|
688
1242
|
*
|
|
1243
|
+
* Requires the "computer-use-2024-10-22" beta header.
|
|
689
1244
|
* Basic actions only: screenshot, left_click, type, key, mouse_move.
|
|
690
1245
|
*
|
|
691
|
-
* @since 1.0.0
|
|
692
1246
|
* @category Computer Use
|
|
1247
|
+
* @since 4.0.0
|
|
693
1248
|
*/
|
|
694
1249
|
export declare const ComputerUse_20241022: <Mode extends Tool.FailureMode | undefined = undefined>(args: {
|
|
695
1250
|
readonly displayWidthPx: number;
|
|
@@ -748,14 +1303,23 @@ export declare const ComputerUse_20241022: <Mode extends Tool.FailureMode | unde
|
|
|
748
1303
|
/**
|
|
749
1304
|
* Computer use tool for Claude 4 models and Claude Sonnet 3.7.
|
|
750
1305
|
*
|
|
751
|
-
*
|
|
1306
|
+
* **When to use**
|
|
1307
|
+
*
|
|
1308
|
+
* Use when configuring Anthropic computer use for Claude 4 models or Claude
|
|
1309
|
+
* Sonnet 3.7 with the 2025-01-24 action set.
|
|
752
1310
|
*
|
|
1311
|
+
* **Details**
|
|
1312
|
+
*
|
|
1313
|
+
* Requires the "computer-use-2025-01-24" beta header.
|
|
753
1314
|
* Includes basic actions plus enhanced actions: scroll, left_click_drag,
|
|
754
1315
|
* right_click, middle_click, double_click, triple_click, left_mouse_down,
|
|
755
1316
|
* left_mouse_up, hold_key, wait.
|
|
756
1317
|
*
|
|
757
|
-
* @
|
|
1318
|
+
* @see {@link ComputerUse_20241022} for the older basic action set
|
|
1319
|
+
* @see {@link ComputerUse_20251124} for the newer zoom-capable version
|
|
1320
|
+
*
|
|
758
1321
|
* @category Computer Use
|
|
1322
|
+
* @since 4.0.0
|
|
759
1323
|
*/
|
|
760
1324
|
export declare const ComputerUse_20250124: <Mode extends Tool.FailureMode | undefined = undefined>(args: {
|
|
761
1325
|
readonly displayWidthPx: number;
|
|
@@ -897,19 +1461,32 @@ export declare const ComputerUse_20250124: <Mode extends Tool.FailureMode | unde
|
|
|
897
1461
|
/**
|
|
898
1462
|
* Computer use tool for Claude Opus 4.5 only.
|
|
899
1463
|
*
|
|
900
|
-
*
|
|
1464
|
+
* **When to use**
|
|
1465
|
+
*
|
|
1466
|
+
* Use when configuring Anthropic computer use for Claude Opus 4.5 with the
|
|
1467
|
+
* 2025-11-24 action set and zoom-capable screen inspection.
|
|
1468
|
+
*
|
|
1469
|
+
* **Details**
|
|
901
1470
|
*
|
|
1471
|
+
* Requires the "computer-use-2025-11-24" beta header.
|
|
902
1472
|
* Includes all actions from computer_20250124 plus the zoom action for
|
|
903
|
-
* detailed screen region inspection.
|
|
1473
|
+
* detailed screen region inspection.
|
|
1474
|
+
*
|
|
1475
|
+
* **Gotchas**
|
|
1476
|
+
*
|
|
1477
|
+
* Zoom actions require `enableZoom: true` in args.
|
|
1478
|
+
*
|
|
1479
|
+
* @see {@link ComputerUse_20250124} for the previous action set without zoom
|
|
1480
|
+
* @see {@link ComputerUseZoomAction} for the zoom action payload
|
|
904
1481
|
*
|
|
905
|
-
* @since 1.0.0
|
|
906
1482
|
* @category Computer Use
|
|
1483
|
+
* @since 4.0.0
|
|
907
1484
|
*/
|
|
908
1485
|
export declare const ComputerUse_20251124: <Mode extends Tool.FailureMode | undefined = undefined>(args: {
|
|
909
1486
|
readonly displayWidthPx: number;
|
|
910
1487
|
readonly displayHeightPx: number;
|
|
911
|
-
readonly displayNumber?: number | undefined;
|
|
912
1488
|
readonly enableZoom?: boolean | undefined;
|
|
1489
|
+
readonly displayNumber?: number | undefined;
|
|
913
1490
|
readonly failureMode?: Mode | undefined;
|
|
914
1491
|
}) => Tool.ProviderDefined<"anthropic.computer_20251124", "AnthropicComputerUse", {
|
|
915
1492
|
readonly args: Schema.Struct<{
|
|
@@ -1054,25 +1631,44 @@ export declare const ComputerUse_20251124: <Mode extends Tool.FailureMode | unde
|
|
|
1054
1631
|
/**
|
|
1055
1632
|
* A `[start, end]` line range for viewing file contents.
|
|
1056
1633
|
*
|
|
1057
|
-
*
|
|
1634
|
+
* **When to use**
|
|
1058
1635
|
*
|
|
1059
|
-
*
|
|
1060
|
-
*
|
|
1636
|
+
* Use when constructing or validating `view_range` for memory or text editor
|
|
1637
|
+
* view commands.
|
|
1638
|
+
*
|
|
1639
|
+
* **Details**
|
|
1640
|
+
*
|
|
1641
|
+
* Lines are 1-indexed. Use `-1` for end to read to the end of the file. For
|
|
1642
|
+
* example, `[1, 50]` views lines 1-50 and `[100, -1]` views from line 100 to
|
|
1643
|
+
* the end of the file.
|
|
1644
|
+
*
|
|
1645
|
+
* @see {@link MemoryViewCommand} for memory view payloads that use this range
|
|
1646
|
+
* @see {@link TextEditorViewCommand} for text editor view payloads that use this range
|
|
1061
1647
|
*
|
|
1062
|
-
* @since 1.0.0
|
|
1063
1648
|
* @category Memory
|
|
1649
|
+
* @since 4.0.0
|
|
1064
1650
|
*/
|
|
1065
1651
|
export declare const ViewRange: Schema.Tuple<readonly [Schema.Number, Schema.Number]>;
|
|
1066
1652
|
/**
|
|
1067
|
-
*
|
|
1653
|
+
* A `[start, end]` 1-indexed line range for viewing file contents, using `-1` as the end value to read through the end of the file.
|
|
1654
|
+
*
|
|
1655
|
+
* **When to use**
|
|
1656
|
+
*
|
|
1657
|
+
* Use when typing `view_range` for memory or text editor view commands.
|
|
1658
|
+
*
|
|
1068
1659
|
* @category Memory
|
|
1660
|
+
* @since 4.0.0
|
|
1069
1661
|
*/
|
|
1070
1662
|
export type ViewRange = typeof ViewRange.Type;
|
|
1071
1663
|
/**
|
|
1072
|
-
*
|
|
1664
|
+
* Schema for the memory tool command that creates a new file at a path.
|
|
1665
|
+
*
|
|
1666
|
+
* **Details**
|
|
1667
|
+
*
|
|
1668
|
+
* The payload contains `command: "create"` and a `path` string.
|
|
1073
1669
|
*
|
|
1074
|
-
* @since 1.0.0
|
|
1075
1670
|
* @category Memory
|
|
1671
|
+
* @since 4.0.0
|
|
1076
1672
|
*/
|
|
1077
1673
|
export declare const MemoryCreateCommand: Schema.Struct<{
|
|
1078
1674
|
readonly command: Schema.Literal<"create">;
|
|
@@ -1082,33 +1678,49 @@ export declare const MemoryCreateCommand: Schema.Struct<{
|
|
|
1082
1678
|
readonly path: Schema.String;
|
|
1083
1679
|
}>;
|
|
1084
1680
|
/**
|
|
1085
|
-
*
|
|
1681
|
+
* Memory tool command payload for creating a new file at a path.
|
|
1682
|
+
*
|
|
1086
1683
|
* @category Memory
|
|
1684
|
+
* @since 4.0.0
|
|
1087
1685
|
*/
|
|
1088
1686
|
export type MemoryCreateCommand = typeof MemoryCreateCommand.Type;
|
|
1089
1687
|
/**
|
|
1090
|
-
*
|
|
1688
|
+
* Schema for a memory command that deletes a file or directory.
|
|
1091
1689
|
*
|
|
1092
|
-
* @since 1.0.0
|
|
1093
1690
|
* @category Memory
|
|
1691
|
+
* @since 4.0.0
|
|
1094
1692
|
*/
|
|
1095
1693
|
export declare const MemoryDeleteCommand: Schema.Struct<{
|
|
1096
1694
|
readonly command: Schema.Literal<"delete">;
|
|
1097
1695
|
/**
|
|
1098
|
-
* The path to the file to delete.
|
|
1696
|
+
* The path to the file or directory to delete.
|
|
1099
1697
|
*/
|
|
1100
1698
|
readonly path: Schema.String;
|
|
1101
1699
|
}>;
|
|
1102
1700
|
/**
|
|
1103
|
-
*
|
|
1701
|
+
* Memory tool command payload for deleting a file or directory at a path.
|
|
1702
|
+
*
|
|
1104
1703
|
* @category Memory
|
|
1704
|
+
* @since 4.0.0
|
|
1105
1705
|
*/
|
|
1106
1706
|
export type MemoryDeleteCommand = typeof MemoryDeleteCommand.Type;
|
|
1107
1707
|
/**
|
|
1108
|
-
*
|
|
1708
|
+
* Schema for the memory `insert` command.
|
|
1709
|
+
*
|
|
1710
|
+
* **When to use**
|
|
1711
|
+
*
|
|
1712
|
+
* Use when validating or constructing `insert` payloads for `Memory_20250818`.
|
|
1713
|
+
*
|
|
1714
|
+
* **Details**
|
|
1715
|
+
*
|
|
1716
|
+
* The payload is discriminated by `command: "insert"` and requires `path`,
|
|
1717
|
+
* `insert_line`, and `insert_text`.
|
|
1718
|
+
*
|
|
1719
|
+
* @see {@link Memory_20250818} for the provider-defined tool that consumes this command
|
|
1720
|
+
* @see {@link MemoryStrReplaceCommand} for replacing existing text instead
|
|
1109
1721
|
*
|
|
1110
|
-
* @since 1.0.0
|
|
1111
1722
|
* @category Memory
|
|
1723
|
+
* @since 4.0.0
|
|
1112
1724
|
*/
|
|
1113
1725
|
export declare const MemoryInsertCommand: Schema.Struct<{
|
|
1114
1726
|
readonly command: Schema.Literal<"insert">;
|
|
@@ -1126,15 +1738,22 @@ export declare const MemoryInsertCommand: Schema.Struct<{
|
|
|
1126
1738
|
readonly insert_text: Schema.String;
|
|
1127
1739
|
}>;
|
|
1128
1740
|
/**
|
|
1129
|
-
*
|
|
1741
|
+
* Memory tool command payload for inserting text at a specific line in a file.
|
|
1742
|
+
*
|
|
1130
1743
|
* @category Memory
|
|
1744
|
+
* @since 4.0.0
|
|
1131
1745
|
*/
|
|
1132
1746
|
export type MemoryInsertCommand = typeof MemoryInsertCommand.Type;
|
|
1133
1747
|
/**
|
|
1134
|
-
*
|
|
1748
|
+
* Schema for the memory command that renames or moves a file or directory.
|
|
1749
|
+
*
|
|
1750
|
+
* **Details**
|
|
1751
|
+
*
|
|
1752
|
+
* The payload uses `command: "rename"` and requires `old_path` as the current
|
|
1753
|
+
* path plus `new_path` as the new destination path.
|
|
1135
1754
|
*
|
|
1136
|
-
* @since 1.0.0
|
|
1137
1755
|
* @category Memory
|
|
1756
|
+
* @since 4.0.0
|
|
1138
1757
|
*/
|
|
1139
1758
|
export declare const MemoryRenameCommand: Schema.Struct<{
|
|
1140
1759
|
readonly command: Schema.Literal<"rename">;
|
|
@@ -1148,15 +1767,29 @@ export declare const MemoryRenameCommand: Schema.Struct<{
|
|
|
1148
1767
|
readonly new_path: Schema.String;
|
|
1149
1768
|
}>;
|
|
1150
1769
|
/**
|
|
1151
|
-
*
|
|
1770
|
+
* Memory tool command payload for renaming or moving a file or directory.
|
|
1771
|
+
*
|
|
1152
1772
|
* @category Memory
|
|
1773
|
+
* @since 4.0.0
|
|
1153
1774
|
*/
|
|
1154
1775
|
export type MemoryRenameCommand = typeof MemoryRenameCommand.Type;
|
|
1155
1776
|
/**
|
|
1156
|
-
*
|
|
1777
|
+
* Schema for the memory `str_replace` command.
|
|
1778
|
+
*
|
|
1779
|
+
* **When to use**
|
|
1780
|
+
*
|
|
1781
|
+
* Use when validating or constructing `str_replace` payloads for
|
|
1782
|
+
* `Memory_20250818`.
|
|
1783
|
+
*
|
|
1784
|
+
* **Details**
|
|
1785
|
+
*
|
|
1786
|
+
* The payload is discriminated by `command: "str_replace"` and requires `path`,
|
|
1787
|
+
* `old_str`, and `new_str`.
|
|
1788
|
+
*
|
|
1789
|
+
* @see {@link Memory_20250818} for the provider-defined tool that consumes this command
|
|
1157
1790
|
*
|
|
1158
|
-
* @since 1.0.0
|
|
1159
1791
|
* @category Memory
|
|
1792
|
+
* @since 4.0.0
|
|
1160
1793
|
*/
|
|
1161
1794
|
export declare const MemoryStrReplaceCommand: Schema.Struct<{
|
|
1162
1795
|
readonly command: Schema.Literal<"str_replace">;
|
|
@@ -1174,20 +1807,27 @@ export declare const MemoryStrReplaceCommand: Schema.Struct<{
|
|
|
1174
1807
|
readonly new_str: Schema.String;
|
|
1175
1808
|
}>;
|
|
1176
1809
|
/**
|
|
1177
|
-
*
|
|
1810
|
+
* Memory tool command payload for replacing text in a file.
|
|
1811
|
+
*
|
|
1178
1812
|
* @category Memory
|
|
1813
|
+
* @since 4.0.0
|
|
1179
1814
|
*/
|
|
1180
1815
|
export type MemoryStrReplaceCommand = typeof MemoryStrReplaceCommand.Type;
|
|
1181
1816
|
/**
|
|
1182
1817
|
* Shows directory contents or file contents with optional line ranges.
|
|
1183
1818
|
*
|
|
1184
|
-
*
|
|
1819
|
+
* **Details**
|
|
1820
|
+
*
|
|
1821
|
+
* When used on a file, returns file contents optionally limited by `view_range`.
|
|
1822
|
+
* When used on a directory, lists contents.
|
|
1823
|
+
*
|
|
1185
1824
|
* @category Memory
|
|
1825
|
+
* @since 4.0.0
|
|
1186
1826
|
*/
|
|
1187
1827
|
export declare const MemoryViewCommand: Schema.Struct<{
|
|
1188
1828
|
readonly command: Schema.Literal<"view">;
|
|
1189
1829
|
/**
|
|
1190
|
-
* The path to the file to view.
|
|
1830
|
+
* The path to the file or directory to view.
|
|
1191
1831
|
*/
|
|
1192
1832
|
readonly path: Schema.String;
|
|
1193
1833
|
/**
|
|
@@ -1196,18 +1836,22 @@ export declare const MemoryViewCommand: Schema.Struct<{
|
|
|
1196
1836
|
readonly view_range: Schema.optional<Schema.Tuple<readonly [Schema.Number, Schema.Number]>>;
|
|
1197
1837
|
}>;
|
|
1198
1838
|
/**
|
|
1199
|
-
*
|
|
1839
|
+
* Memory tool command payload for viewing a file or directory, optionally with a file line range.
|
|
1840
|
+
*
|
|
1200
1841
|
* @category Memory
|
|
1842
|
+
* @since 4.0.0
|
|
1201
1843
|
*/
|
|
1202
1844
|
export type MemoryViewCommand = typeof MemoryViewCommand.Type;
|
|
1203
1845
|
/**
|
|
1204
1846
|
* Memory tool for persistent file operations across conversations.
|
|
1205
1847
|
*
|
|
1848
|
+
* **Details**
|
|
1849
|
+
*
|
|
1206
1850
|
* Provides commands for creating, viewing, editing, renaming, and deleting
|
|
1207
1851
|
* files within the model's memory space.
|
|
1208
1852
|
*
|
|
1209
|
-
* @since 1.0.0
|
|
1210
1853
|
* @category Memory
|
|
1854
|
+
* @since 4.0.0
|
|
1211
1855
|
*/
|
|
1212
1856
|
export declare const Memory_20250818: <Mode extends Tool.FailureMode | undefined = undefined>(args: void) => Tool.ProviderDefined<"anthropic.memory_20250818", "AnthropicMemory", {
|
|
1213
1857
|
readonly args: Schema.Void;
|
|
@@ -1220,7 +1864,7 @@ export declare const Memory_20250818: <Mode extends Tool.FailureMode | undefined
|
|
|
1220
1864
|
}>, Schema.Struct<{
|
|
1221
1865
|
readonly command: Schema.Literal<"delete">;
|
|
1222
1866
|
/**
|
|
1223
|
-
* The path to the file to delete.
|
|
1867
|
+
* The path to the file or directory to delete.
|
|
1224
1868
|
*/
|
|
1225
1869
|
readonly path: Schema.String;
|
|
1226
1870
|
}>, Schema.Struct<{
|
|
@@ -1264,7 +1908,7 @@ export declare const Memory_20250818: <Mode extends Tool.FailureMode | undefined
|
|
|
1264
1908
|
}>, Schema.Struct<{
|
|
1265
1909
|
readonly command: Schema.Literal<"view">;
|
|
1266
1910
|
/**
|
|
1267
|
-
* The path to the file to view.
|
|
1911
|
+
* The path to the file or directory to view.
|
|
1268
1912
|
*/
|
|
1269
1913
|
readonly path: Schema.String;
|
|
1270
1914
|
/**
|
|
@@ -1279,11 +1923,22 @@ export declare const Memory_20250818: <Mode extends Tool.FailureMode | undefined
|
|
|
1279
1923
|
/**
|
|
1280
1924
|
* View the contents of a file or list directory contents.
|
|
1281
1925
|
*
|
|
1282
|
-
* When
|
|
1283
|
-
*
|
|
1926
|
+
* **When to use**
|
|
1927
|
+
*
|
|
1928
|
+
* Use when validating or constructing the standalone Anthropic Text Editor
|
|
1929
|
+
* `view` command.
|
|
1930
|
+
*
|
|
1931
|
+
* **Details**
|
|
1932
|
+
*
|
|
1933
|
+
* When used on a file, returns the file contents, optionally limited to a line
|
|
1934
|
+
* range. When used on a directory, lists all files and subdirectories.
|
|
1935
|
+
* `view_range` is a 1-indexed `[start, end]` tuple where `-1` means through
|
|
1936
|
+
* the end of the file.
|
|
1937
|
+
*
|
|
1938
|
+
* @see {@link CodeExecutionTextEditorView} for the code-execution variant without `view_range`
|
|
1284
1939
|
*
|
|
1285
|
-
* @since 1.0.0
|
|
1286
1940
|
* @category Text Editor
|
|
1941
|
+
* @since 4.0.0
|
|
1287
1942
|
*/
|
|
1288
1943
|
export declare const TextEditorViewCommand: Schema.Struct<{
|
|
1289
1944
|
readonly command: Schema.Literal<"view">;
|
|
@@ -1298,17 +1953,36 @@ export declare const TextEditorViewCommand: Schema.Struct<{
|
|
|
1298
1953
|
readonly view_range: Schema.optional<Schema.Tuple<readonly [Schema.Number, Schema.Number]>>;
|
|
1299
1954
|
}>;
|
|
1300
1955
|
/**
|
|
1301
|
-
*
|
|
1956
|
+
* Text editor command payload for viewing file contents or listing directory contents.
|
|
1957
|
+
*
|
|
1958
|
+
* **Details**
|
|
1959
|
+
*
|
|
1960
|
+
* `view_range` is a 1-indexed `[start, end]` tuple where `-1` means through
|
|
1961
|
+
* the end of the file.
|
|
1962
|
+
*
|
|
1302
1963
|
* @category Text Editor
|
|
1964
|
+
* @since 4.0.0
|
|
1303
1965
|
*/
|
|
1304
1966
|
export type TextEditorViewCommand = typeof TextEditorViewCommand.Type;
|
|
1305
1967
|
/**
|
|
1306
1968
|
* Create a new file with specified content.
|
|
1307
1969
|
*
|
|
1308
|
-
*
|
|
1970
|
+
* **When to use**
|
|
1971
|
+
*
|
|
1972
|
+
* Use when validating or constructing an Anthropic text editor `create`
|
|
1973
|
+
* command.
|
|
1974
|
+
*
|
|
1975
|
+
* **Details**
|
|
1976
|
+
*
|
|
1977
|
+
* The payload is discriminated by `command: "create"` and requires both `path`
|
|
1978
|
+
* and `file_text`.
|
|
1979
|
+
*
|
|
1980
|
+
* **Gotchas**
|
|
1981
|
+
*
|
|
1982
|
+
* Fails if the file already exists. Parent directories must exist.
|
|
1309
1983
|
*
|
|
1310
|
-
* @since 1.0.0
|
|
1311
1984
|
* @category Text Editor
|
|
1985
|
+
* @since 4.0.0
|
|
1312
1986
|
*/
|
|
1313
1987
|
export declare const TextEditorCreateCommand: Schema.Struct<{
|
|
1314
1988
|
readonly command: Schema.Literal<"create">;
|
|
@@ -1322,18 +1996,39 @@ export declare const TextEditorCreateCommand: Schema.Struct<{
|
|
|
1322
1996
|
readonly file_text: Schema.String;
|
|
1323
1997
|
}>;
|
|
1324
1998
|
/**
|
|
1325
|
-
*
|
|
1999
|
+
* Text editor command payload for creating a new file with the specified content.
|
|
2000
|
+
*
|
|
2001
|
+
* **Gotchas**
|
|
2002
|
+
*
|
|
2003
|
+
* The command fails if the file already exists or if parent directories are missing.
|
|
2004
|
+
*
|
|
1326
2005
|
* @category Text Editor
|
|
2006
|
+
* @since 4.0.0
|
|
1327
2007
|
*/
|
|
1328
2008
|
export type TextEditorCreateCommand = typeof TextEditorCreateCommand.Type;
|
|
1329
2009
|
/**
|
|
1330
2010
|
* Replace a specific string in a file with a new string.
|
|
1331
2011
|
*
|
|
2012
|
+
* **When to use**
|
|
2013
|
+
*
|
|
2014
|
+
* Use when validating or constructing standalone Anthropic text editor
|
|
2015
|
+
* `str_replace` commands.
|
|
2016
|
+
*
|
|
2017
|
+
* **Details**
|
|
2018
|
+
*
|
|
2019
|
+
* The payload uses `command: "str_replace"`, `path`, `old_str`, and `new_str`.
|
|
2020
|
+
* `new_str` may be empty to delete text.
|
|
2021
|
+
*
|
|
2022
|
+
* **Gotchas**
|
|
2023
|
+
*
|
|
1332
2024
|
* The `old_str` must match exactly (including whitespace and indentation)
|
|
1333
2025
|
* and must be unique in the file.
|
|
1334
2026
|
*
|
|
1335
|
-
* @
|
|
2027
|
+
* @see {@link TextEditorViewCommand} for reading contents before choosing `old_str`
|
|
2028
|
+
* @see {@link CodeExecutionTextEditorStrReplace} for the code-execution variant
|
|
2029
|
+
*
|
|
1336
2030
|
* @category Text Editor
|
|
2031
|
+
* @since 4.0.0
|
|
1337
2032
|
*/
|
|
1338
2033
|
export declare const TextEditorStrReplaceCommand: Schema.Struct<{
|
|
1339
2034
|
readonly command: Schema.Literal<"str_replace">;
|
|
@@ -1351,17 +2046,27 @@ export declare const TextEditorStrReplaceCommand: Schema.Struct<{
|
|
|
1351
2046
|
readonly new_str: Schema.String;
|
|
1352
2047
|
}>;
|
|
1353
2048
|
/**
|
|
1354
|
-
*
|
|
2049
|
+
* Text editor command payload for replacing one exact, unique string in a file.
|
|
2050
|
+
*
|
|
2051
|
+
* **Gotchas**
|
|
2052
|
+
*
|
|
2053
|
+
* The `old_str` must match exactly, including whitespace and indentation, and
|
|
2054
|
+
* must be unique in the file.
|
|
2055
|
+
*
|
|
1355
2056
|
* @category Text Editor
|
|
2057
|
+
* @since 4.0.0
|
|
1356
2058
|
*/
|
|
1357
2059
|
export type TextEditorStrReplaceCommand = typeof TextEditorStrReplaceCommand.Type;
|
|
1358
2060
|
/**
|
|
1359
2061
|
* Insert text at a specific line number in a file.
|
|
1360
2062
|
*
|
|
1361
|
-
*
|
|
2063
|
+
* **Details**
|
|
2064
|
+
*
|
|
2065
|
+
* Inserts the new text after the specified line number. Use `0` to insert at
|
|
2066
|
+
* the beginning of the file; other values are 1-indexed.
|
|
1362
2067
|
*
|
|
1363
|
-
* @since 1.0.0
|
|
1364
2068
|
* @category Text Editor
|
|
2069
|
+
* @since 4.0.0
|
|
1365
2070
|
*/
|
|
1366
2071
|
export declare const TextEditorInsertCommand: Schema.Struct<{
|
|
1367
2072
|
readonly command: Schema.Literal<"insert">;
|
|
@@ -1379,20 +2084,28 @@ export declare const TextEditorInsertCommand: Schema.Struct<{
|
|
|
1379
2084
|
readonly new_str: Schema.String;
|
|
1380
2085
|
}>;
|
|
1381
2086
|
/**
|
|
1382
|
-
*
|
|
2087
|
+
* Text editor command payload for inserting text after a specific line number in a file.
|
|
2088
|
+
*
|
|
1383
2089
|
* @category Text Editor
|
|
2090
|
+
* @since 4.0.0
|
|
1384
2091
|
*/
|
|
1385
2092
|
export type TextEditorInsertCommand = typeof TextEditorInsertCommand.Type;
|
|
1386
2093
|
/**
|
|
1387
2094
|
* Undo the last edit made to a file.
|
|
1388
2095
|
*
|
|
1389
|
-
*
|
|
2096
|
+
* **Details**
|
|
2097
|
+
*
|
|
2098
|
+
* Reverts the most recent `str_replace`, `insert`, or `create` operation on the
|
|
2099
|
+
* file.
|
|
2100
|
+
*
|
|
2101
|
+
* **Gotchas**
|
|
1390
2102
|
*
|
|
1391
|
-
*
|
|
1392
|
-
* but
|
|
2103
|
+
* This command is available in `text_editor_20241022` and
|
|
2104
|
+
* `text_editor_20250124`, but not in `text_editor_20250429` or
|
|
2105
|
+
* `text_editor_20250728`.
|
|
1393
2106
|
*
|
|
1394
|
-
* @since 1.0.0
|
|
1395
2107
|
* @category Text Editor
|
|
2108
|
+
* @since 4.0.0
|
|
1396
2109
|
*/
|
|
1397
2110
|
export declare const TextEditorUndoEditCommand: Schema.Struct<{
|
|
1398
2111
|
readonly command: Schema.Literal<"undo_edit">;
|
|
@@ -1402,17 +2115,35 @@ export declare const TextEditorUndoEditCommand: Schema.Struct<{
|
|
|
1402
2115
|
readonly path: Schema.String;
|
|
1403
2116
|
}>;
|
|
1404
2117
|
/**
|
|
1405
|
-
*
|
|
2118
|
+
* Text editor command payload for undoing the most recent edit to a file.
|
|
2119
|
+
*
|
|
2120
|
+
* **Gotchas**
|
|
2121
|
+
*
|
|
2122
|
+
* Available for `text_editor_20241022` and `text_editor_20250124`, but not for
|
|
2123
|
+
* `text_editor_20250429` or `text_editor_20250728`.
|
|
2124
|
+
*
|
|
1406
2125
|
* @category Text Editor
|
|
2126
|
+
* @since 4.0.0
|
|
1407
2127
|
*/
|
|
1408
2128
|
export type TextEditorUndoEditCommand = typeof TextEditorUndoEditCommand.Type;
|
|
1409
2129
|
/**
|
|
1410
2130
|
* Text editor tool for Claude 3.5 Sonnet (deprecated).
|
|
1411
2131
|
*
|
|
1412
|
-
*
|
|
2132
|
+
* **When to use**
|
|
2133
|
+
*
|
|
2134
|
+
* Use when configuring the 2024-10-22 `str_replace_editor` compatibility path
|
|
2135
|
+
* for Claude 3.5 Sonnet.
|
|
2136
|
+
*
|
|
2137
|
+
* **Details**
|
|
2138
|
+
*
|
|
2139
|
+
* Requires the "computer-use-2024-10-22" beta header and supports `view`,
|
|
2140
|
+
* `create`, `str_replace`, `insert`, and `undo_edit` commands.
|
|
2141
|
+
*
|
|
2142
|
+
* @see {@link TextEditor_20250124} for the newer `str_replace_editor` version
|
|
2143
|
+
* @see {@link TextEditor_20250728} for the Claude 4 `str_replace_based_edit_tool` line
|
|
1413
2144
|
*
|
|
1414
|
-
* @since 1.0.0
|
|
1415
2145
|
* @category Text Editor
|
|
2146
|
+
* @since 4.0.0
|
|
1416
2147
|
*/
|
|
1417
2148
|
export declare const TextEditor_20241022: <Mode extends Tool.FailureMode | undefined = undefined>(args: {
|
|
1418
2149
|
readonly failureMode?: Mode | undefined;
|
|
@@ -1481,8 +2212,21 @@ export declare const TextEditor_20241022: <Mode extends Tool.FailureMode | undef
|
|
|
1481
2212
|
/**
|
|
1482
2213
|
* Text editor tool for Claude Sonnet 3.7 (deprecated model).
|
|
1483
2214
|
*
|
|
1484
|
-
*
|
|
2215
|
+
* **When to use**
|
|
2216
|
+
*
|
|
2217
|
+
* Use when configuring the 2025-01-24 Claude Sonnet 3.7 text editor tool using
|
|
2218
|
+
* `str_replace_editor`.
|
|
2219
|
+
*
|
|
2220
|
+
* **Details**
|
|
2221
|
+
*
|
|
2222
|
+
* Requires the "computer-use-2025-01-24" beta header, requires a handler, and
|
|
2223
|
+
* supports `view`, `create`, `str_replace`, `insert`, and `undo_edit` commands.
|
|
2224
|
+
*
|
|
2225
|
+
* @see {@link TextEditor_20241022} for the older `str_replace_editor` version
|
|
2226
|
+
* @see {@link TextEditor_20250429} for the Claude 4 `str_replace_based_edit_tool` line
|
|
2227
|
+
*
|
|
1485
2228
|
* @category Text Editor
|
|
2229
|
+
* @since 4.0.0
|
|
1486
2230
|
*/
|
|
1487
2231
|
export declare const TextEditor_20250124: <Mode extends Tool.FailureMode | undefined = undefined>(args: {
|
|
1488
2232
|
readonly failureMode?: Mode | undefined;
|
|
@@ -1549,12 +2293,26 @@ export declare const TextEditor_20250124: <Mode extends Tool.FailureMode | undef
|
|
|
1549
2293
|
readonly failureMode: Mode extends undefined ? "error" : Mode;
|
|
1550
2294
|
}, true>;
|
|
1551
2295
|
/**
|
|
1552
|
-
* Text editor tool for Claude 4 models
|
|
2296
|
+
* Text editor tool for Claude 4 models using Anthropic's `str_replace_based_edit_tool`.
|
|
2297
|
+
*
|
|
2298
|
+
* **When to use**
|
|
1553
2299
|
*
|
|
1554
|
-
*
|
|
2300
|
+
* Use when configuring the 2025-04-29 Claude 4 `str_replace_based_edit_tool`
|
|
2301
|
+
* version.
|
|
2302
|
+
*
|
|
2303
|
+
* **Details**
|
|
2304
|
+
*
|
|
2305
|
+
* Requires the "computer-use-2025-01-24" beta header.
|
|
2306
|
+
*
|
|
2307
|
+
* **Gotchas**
|
|
2308
|
+
*
|
|
2309
|
+
* This version does not support the `undo_edit` command.
|
|
2310
|
+
*
|
|
2311
|
+
* @see {@link TextEditor_20250124} for the previous `str_replace_editor` version
|
|
2312
|
+
* @see {@link TextEditor_20250728} for the later Claude 4 text editor version
|
|
1555
2313
|
*
|
|
1556
|
-
* @since 1.0.0
|
|
1557
2314
|
* @category Text Editor
|
|
2315
|
+
* @since 4.0.0
|
|
1558
2316
|
*/
|
|
1559
2317
|
export declare const TextEditor_20250429: <Mode extends Tool.FailureMode | undefined = undefined>(args: {
|
|
1560
2318
|
readonly max_characters?: number | undefined;
|
|
@@ -1624,10 +2382,17 @@ export declare const TextEditor_20250429: <Mode extends Tool.FailureMode | undef
|
|
|
1624
2382
|
/**
|
|
1625
2383
|
* Text editor tool for Claude 4 models.
|
|
1626
2384
|
*
|
|
1627
|
-
*
|
|
2385
|
+
* **Details**
|
|
2386
|
+
*
|
|
2387
|
+
* Uses Anthropic's `str_replace_based_edit_tool`. `max_characters` can limit
|
|
2388
|
+
* file-view output for this version.
|
|
2389
|
+
*
|
|
2390
|
+
* **Gotchas**
|
|
2391
|
+
*
|
|
2392
|
+
* This version does not support the `undo_edit` command.
|
|
1628
2393
|
*
|
|
1629
|
-
* @since 1.0.0
|
|
1630
2394
|
* @category Text Editor
|
|
2395
|
+
* @since 4.0.0
|
|
1631
2396
|
*/
|
|
1632
2397
|
export declare const TextEditor_20250728: <Mode extends Tool.FailureMode | undefined = undefined>(args: {
|
|
1633
2398
|
readonly max_characters?: number | undefined;
|
|
@@ -1697,11 +2462,21 @@ export declare const TextEditor_20250728: <Mode extends Tool.FailureMode | undef
|
|
|
1697
2462
|
/**
|
|
1698
2463
|
* User location for localizing search results.
|
|
1699
2464
|
*
|
|
1700
|
-
*
|
|
1701
|
-
*
|
|
2465
|
+
* **When to use**
|
|
2466
|
+
*
|
|
2467
|
+
* Use when providing location helps return more relevant results for
|
|
2468
|
+
* location-dependent queries like weather, local businesses, or events.
|
|
2469
|
+
*
|
|
2470
|
+
* **Details**
|
|
2471
|
+
*
|
|
2472
|
+
* The schema uses `type: "approximate"` plus optional `city`, `region`,
|
|
2473
|
+
* `country`, and `timezone`. `country` is an ISO 3166-1 alpha-2 code, and
|
|
2474
|
+
* `timezone` is an IANA time zone identifier.
|
|
2475
|
+
*
|
|
2476
|
+
* @see {@link WebSearch_20250305_Args} for the argument schema that consumes this location
|
|
1702
2477
|
*
|
|
1703
|
-
* @since 1.0.0
|
|
1704
2478
|
* @category Web Search
|
|
2479
|
+
* @since 4.0.0
|
|
1705
2480
|
*/
|
|
1706
2481
|
export declare const WebSearchUserLocation: Schema.Struct<{
|
|
1707
2482
|
/**
|
|
@@ -1728,8 +2503,25 @@ export declare const WebSearchUserLocation: Schema.Struct<{
|
|
|
1728
2503
|
/**
|
|
1729
2504
|
* Configuration arguments for the web search tool.
|
|
1730
2505
|
*
|
|
1731
|
-
*
|
|
2506
|
+
* **When to use**
|
|
2507
|
+
*
|
|
2508
|
+
* Use when configuring `WebSearch_20250305` with search limits, domain filters,
|
|
2509
|
+
* or user location.
|
|
2510
|
+
*
|
|
2511
|
+
* **Details**
|
|
2512
|
+
*
|
|
2513
|
+
* The payload can set `maxUses`, `allowedDomains`, `blockedDomains`, and
|
|
2514
|
+
* `userLocation`.
|
|
2515
|
+
*
|
|
2516
|
+
* **Gotchas**
|
|
2517
|
+
*
|
|
2518
|
+
* `allowedDomains` and `blockedDomains` are mutually exclusive.
|
|
2519
|
+
*
|
|
2520
|
+
* @see {@link WebSearch_20250305} for the provider-defined tool that consumes these arguments
|
|
2521
|
+
* @see {@link WebSearchUserLocation} for localizing search results
|
|
2522
|
+
*
|
|
1732
2523
|
* @category Web Search
|
|
2524
|
+
* @since 4.0.0
|
|
1733
2525
|
*/
|
|
1734
2526
|
export declare const WebSearch_20250305_Args: Schema.Struct<{
|
|
1735
2527
|
/**
|
|
@@ -1775,15 +2567,28 @@ export declare const WebSearch_20250305_Args: Schema.Struct<{
|
|
|
1775
2567
|
}>>;
|
|
1776
2568
|
}>;
|
|
1777
2569
|
/**
|
|
1778
|
-
*
|
|
2570
|
+
* Configuration arguments for the Anthropic web search tool, including usage limits, domain filters, and optional user location.
|
|
2571
|
+
*
|
|
2572
|
+
* **Gotchas**
|
|
2573
|
+
*
|
|
2574
|
+
* `allowedDomains` and `blockedDomains` are mutually exclusive.
|
|
2575
|
+
*
|
|
1779
2576
|
* @category Web Search
|
|
2577
|
+
* @since 4.0.0
|
|
1780
2578
|
*/
|
|
1781
2579
|
export type WebSearch_20250305_Args = typeof WebSearch_20250305_Args.Type;
|
|
1782
2580
|
/**
|
|
1783
|
-
*
|
|
2581
|
+
* Schema for Claude-supplied web search tool parameters.
|
|
2582
|
+
*
|
|
2583
|
+
* **Details**
|
|
2584
|
+
*
|
|
2585
|
+
* The payload contains the generated `query` string and is consumed by
|
|
2586
|
+
* `WebSearch_20250305`.
|
|
2587
|
+
*
|
|
2588
|
+
* @see {@link WebSearch_20250305} for the provider-defined tool that consumes this payload
|
|
1784
2589
|
*
|
|
1785
|
-
* @since 1.0.0
|
|
1786
2590
|
* @category Web Search
|
|
2591
|
+
* @since 4.0.0
|
|
1787
2592
|
*/
|
|
1788
2593
|
export declare const WebSearchParameters: Schema.Struct<{
|
|
1789
2594
|
/**
|
|
@@ -1792,20 +2597,35 @@ export declare const WebSearchParameters: Schema.Struct<{
|
|
|
1792
2597
|
readonly query: Schema.String;
|
|
1793
2598
|
}>;
|
|
1794
2599
|
/**
|
|
1795
|
-
*
|
|
2600
|
+
* Type of the parameters Claude supplies when invoking the Anthropic web search tool.
|
|
2601
|
+
*
|
|
2602
|
+
* **Details**
|
|
2603
|
+
*
|
|
2604
|
+
* Contains the generated search query used by `WebSearch_20250305`.
|
|
2605
|
+
*
|
|
2606
|
+
* @see {@link WebSearch_20250305} for the provider-defined tool that consumes this payload
|
|
2607
|
+
*
|
|
1796
2608
|
* @category Web Search
|
|
2609
|
+
* @since 4.0.0
|
|
1797
2610
|
*/
|
|
1798
2611
|
export type WebSearchParameters = typeof WebSearchParameters.Type;
|
|
1799
2612
|
/**
|
|
1800
2613
|
* Web search tool for Claude models.
|
|
1801
2614
|
*
|
|
2615
|
+
* **When to use**
|
|
2616
|
+
*
|
|
2617
|
+
* Use when Claude should search the web for real-time information.
|
|
2618
|
+
*
|
|
2619
|
+
* **Details**
|
|
2620
|
+
*
|
|
1802
2621
|
* Enables Claude to search the web for real-time information. This is a
|
|
1803
2622
|
* server-side tool executed by Anthropic's infrastructure.
|
|
1804
|
-
*
|
|
1805
2623
|
* Generally available (no beta header required).
|
|
1806
2624
|
*
|
|
1807
|
-
* @
|
|
2625
|
+
* @see {@link WebFetch_20250910} for retrieving known URLs after discovery
|
|
2626
|
+
*
|
|
1808
2627
|
* @category Web Search
|
|
2628
|
+
* @since 4.0.0
|
|
1809
2629
|
*/
|
|
1810
2630
|
export declare const WebSearch_20250305: <Mode extends Tool.FailureMode | undefined = undefined>(args: {
|
|
1811
2631
|
readonly maxUses?: number | undefined;
|
|
@@ -1814,8 +2634,8 @@ export declare const WebSearch_20250305: <Mode extends Tool.FailureMode | undefi
|
|
|
1814
2634
|
readonly userLocation?: {
|
|
1815
2635
|
readonly type: "approximate";
|
|
1816
2636
|
readonly city?: string | undefined;
|
|
1817
|
-
readonly country?: string | undefined;
|
|
1818
2637
|
readonly region?: string | undefined;
|
|
2638
|
+
readonly country?: string | undefined;
|
|
1819
2639
|
readonly timezone?: string | undefined;
|
|
1820
2640
|
} | undefined;
|
|
1821
2641
|
}) => Tool.ProviderDefined<"anthropic.web_search_20250305", "AnthropicWebSearch", {
|
|
@@ -1884,8 +2704,19 @@ export declare const WebSearch_20250305: <Mode extends Tool.FailureMode | undefi
|
|
|
1884
2704
|
/**
|
|
1885
2705
|
* Citation configuration for web fetch.
|
|
1886
2706
|
*
|
|
1887
|
-
*
|
|
2707
|
+
* **When to use**
|
|
2708
|
+
*
|
|
2709
|
+
* Use when configuring whether web fetch results should include citations.
|
|
2710
|
+
*
|
|
2711
|
+
* **Details**
|
|
2712
|
+
*
|
|
2713
|
+
* The payload contains the `enabled` flag. `citations` is optional on
|
|
2714
|
+
* `WebFetch_20250910_Args`, and citations are disabled by default.
|
|
2715
|
+
*
|
|
2716
|
+
* @see {@link WebFetch_20250910_Args} for the argument schema that consumes this configuration
|
|
2717
|
+
*
|
|
1888
2718
|
* @category Web Fetch
|
|
2719
|
+
* @since 4.0.0
|
|
1889
2720
|
*/
|
|
1890
2721
|
export declare const WebFetchCitationsConfig: Schema.Struct<{
|
|
1891
2722
|
/**
|
|
@@ -1894,15 +2725,43 @@ export declare const WebFetchCitationsConfig: Schema.Struct<{
|
|
|
1894
2725
|
readonly enabled: Schema.Boolean;
|
|
1895
2726
|
}>;
|
|
1896
2727
|
/**
|
|
1897
|
-
*
|
|
2728
|
+
* Configuration payload for enabling or disabling citations on web fetch results.
|
|
2729
|
+
*
|
|
2730
|
+
* **Details**
|
|
2731
|
+
*
|
|
2732
|
+
* The payload contains the `enabled` flag. `citations` is optional on
|
|
2733
|
+
* `WebFetch_20250910_Args`, and citations are disabled by default.
|
|
2734
|
+
*
|
|
2735
|
+
* @see {@link WebFetch_20250910_Args} for the argument schema that consumes this configuration
|
|
2736
|
+
*
|
|
1898
2737
|
* @category Web Fetch
|
|
2738
|
+
* @since 4.0.0
|
|
1899
2739
|
*/
|
|
1900
2740
|
export type WebFetchCitationsConfig = typeof WebFetchCitationsConfig.Type;
|
|
1901
2741
|
/**
|
|
1902
2742
|
* Configuration arguments for the web fetch tool.
|
|
1903
2743
|
*
|
|
1904
|
-
*
|
|
2744
|
+
* **When to use**
|
|
2745
|
+
*
|
|
2746
|
+
* Use when configuring `WebFetch_20250910` with usage limits, domain filters,
|
|
2747
|
+
* citations, or content token limits.
|
|
2748
|
+
*
|
|
2749
|
+
* **Details**
|
|
2750
|
+
*
|
|
2751
|
+
* The payload can set `maxUses`, domain filters, `citations`, and
|
|
2752
|
+
* `maxContentTokens`, which map to Anthropic web fetch request fields.
|
|
2753
|
+
*
|
|
2754
|
+
* **Gotchas**
|
|
2755
|
+
*
|
|
2756
|
+
* `allowedDomains` and `blockedDomains` are mutually exclusive.
|
|
2757
|
+
* `maxContentTokens` is approximate and does not apply to binary content such
|
|
2758
|
+
* as PDFs.
|
|
2759
|
+
*
|
|
2760
|
+
* @see {@link WebFetch_20250910} for the provider-defined tool that consumes these arguments
|
|
2761
|
+
* @see {@link WebFetchCitationsConfig} for configuring citations
|
|
2762
|
+
*
|
|
1905
2763
|
* @category Web Fetch
|
|
2764
|
+
* @since 4.0.0
|
|
1906
2765
|
*/
|
|
1907
2766
|
export declare const WebFetch_20250910_Args: Schema.Struct<{
|
|
1908
2767
|
/**
|
|
@@ -1936,15 +2795,39 @@ export declare const WebFetch_20250910_Args: Schema.Struct<{
|
|
|
1936
2795
|
readonly maxContentTokens: Schema.optional<Schema.Number>;
|
|
1937
2796
|
}>;
|
|
1938
2797
|
/**
|
|
1939
|
-
*
|
|
2798
|
+
* Configuration arguments for the Anthropic web fetch tool, including usage limits, domain filters, citation settings, and token limits.
|
|
2799
|
+
*
|
|
2800
|
+
* **Gotchas**
|
|
2801
|
+
*
|
|
2802
|
+
* `allowedDomains` and `blockedDomains` are mutually exclusive.
|
|
2803
|
+
* `maxContentTokens` is approximate and does not apply to binary content such
|
|
2804
|
+
* as PDFs.
|
|
2805
|
+
*
|
|
1940
2806
|
* @category Web Fetch
|
|
2807
|
+
* @since 4.0.0
|
|
1941
2808
|
*/
|
|
1942
2809
|
export type WebFetch_20250910_Args = typeof WebFetch_20250910_Args.Type;
|
|
1943
2810
|
/**
|
|
1944
|
-
*
|
|
2811
|
+
* Schema for Claude-supplied web fetch parameters.
|
|
2812
|
+
*
|
|
2813
|
+
* **When to use**
|
|
2814
|
+
*
|
|
2815
|
+
* Use when validating or constructing the `url` payload consumed by
|
|
2816
|
+
* `WebFetch_20250910`.
|
|
2817
|
+
*
|
|
2818
|
+
* **Details**
|
|
2819
|
+
*
|
|
2820
|
+
* The payload contains the single `url` parameter for Anthropic web fetch.
|
|
2821
|
+
*
|
|
2822
|
+
* **Gotchas**
|
|
2823
|
+
*
|
|
2824
|
+
* The URL must be user-provided or from prior search/fetch results. Maximum URL
|
|
2825
|
+
* length is 250 characters.
|
|
2826
|
+
*
|
|
2827
|
+
* @see {@link WebFetch_20250910} for the provider-defined tool that consumes this payload
|
|
1945
2828
|
*
|
|
1946
|
-
* @since 1.0.0
|
|
1947
2829
|
* @category Web Fetch
|
|
2830
|
+
* @since 4.0.0
|
|
1948
2831
|
*/
|
|
1949
2832
|
export declare const WebFetchParameters: Schema.Struct<{
|
|
1950
2833
|
/**
|
|
@@ -1954,28 +2837,46 @@ export declare const WebFetchParameters: Schema.Struct<{
|
|
|
1954
2837
|
readonly url: Schema.String;
|
|
1955
2838
|
}>;
|
|
1956
2839
|
/**
|
|
1957
|
-
*
|
|
2840
|
+
* Type of the parameters Claude supplies when invoking the Anthropic web fetch tool.
|
|
2841
|
+
*
|
|
2842
|
+
* **Details**
|
|
2843
|
+
*
|
|
2844
|
+
* The payload contains the single `url` parameter for Anthropic web fetch.
|
|
2845
|
+
*
|
|
2846
|
+
* **Gotchas**
|
|
2847
|
+
*
|
|
2848
|
+
* The URL must be user-provided or from prior search/fetch results. Maximum URL
|
|
2849
|
+
* length is 250 characters.
|
|
2850
|
+
*
|
|
1958
2851
|
* @category Web Fetch
|
|
2852
|
+
* @since 4.0.0
|
|
1959
2853
|
*/
|
|
1960
2854
|
export type WebFetchParameters = typeof WebFetchParameters.Type;
|
|
1961
2855
|
/**
|
|
1962
2856
|
* Web fetch tool for Claude models.
|
|
1963
2857
|
*
|
|
2858
|
+
* **When to use**
|
|
2859
|
+
*
|
|
2860
|
+
* Use when Claude should retrieve the content of a specific web page or PDF.
|
|
2861
|
+
*
|
|
2862
|
+
* **Details**
|
|
2863
|
+
*
|
|
1964
2864
|
* Allows Claude to retrieve full content from web pages and PDF documents.
|
|
1965
|
-
* This is a server-side tool executed by Anthropic's infrastructure.
|
|
2865
|
+
* This is a server-side tool executed by Anthropic's infrastructure. Selecting
|
|
2866
|
+
* this tool adds the "web-fetch-2025-09-10" beta header.
|
|
1966
2867
|
*
|
|
1967
|
-
*
|
|
2868
|
+
* @see {@link WebSearch_20250305} for discovering URLs before fetching specific content
|
|
1968
2869
|
*
|
|
1969
|
-
* @since 1.0.0
|
|
1970
2870
|
* @category Web Fetch
|
|
2871
|
+
* @since 4.0.0
|
|
1971
2872
|
*/
|
|
1972
2873
|
export declare const WebFetch_20250910: <Mode extends Tool.FailureMode | undefined = undefined>(args: {
|
|
1973
|
-
readonly citations?: {
|
|
1974
|
-
readonly enabled: boolean;
|
|
1975
|
-
} | undefined;
|
|
1976
2874
|
readonly maxUses?: number | undefined;
|
|
1977
2875
|
readonly allowedDomains?: readonly string[] | undefined;
|
|
1978
2876
|
readonly blockedDomains?: readonly string[] | undefined;
|
|
2877
|
+
readonly citations?: {
|
|
2878
|
+
readonly enabled: boolean;
|
|
2879
|
+
} | undefined;
|
|
1979
2880
|
readonly maxContentTokens?: number | undefined;
|
|
1980
2881
|
}) => Tool.ProviderDefined<"anthropic.web_fetch_20250910", "AnthropicWebFetch", {
|
|
1981
2882
|
readonly args: Schema.Struct<{
|
|
@@ -2046,11 +2947,13 @@ export declare const WebFetch_20250910: <Mode extends Tool.FailureMode | undefin
|
|
|
2046
2947
|
/**
|
|
2047
2948
|
* Input parameters for regex-based tool search.
|
|
2048
2949
|
*
|
|
2950
|
+
* **Details**
|
|
2951
|
+
*
|
|
2049
2952
|
* Claude constructs regex patterns using Python's `re.search()` syntax.
|
|
2050
2953
|
* Maximum query length: 200 characters.
|
|
2051
2954
|
*
|
|
2052
|
-
* @since 1.0.0
|
|
2053
2955
|
* @category Tool Search
|
|
2956
|
+
* @since 4.0.0
|
|
2054
2957
|
*/
|
|
2055
2958
|
export declare const ToolSearchRegexParameters: Schema.Struct<{
|
|
2056
2959
|
/**
|
|
@@ -2059,15 +2962,34 @@ export declare const ToolSearchRegexParameters: Schema.Struct<{
|
|
|
2059
2962
|
readonly query: Schema.String;
|
|
2060
2963
|
}>;
|
|
2061
2964
|
/**
|
|
2062
|
-
*
|
|
2965
|
+
* Type of the parameters Claude supplies when invoking regex-based Anthropic tool search.
|
|
2966
|
+
*
|
|
2967
|
+
* **Details**
|
|
2968
|
+
*
|
|
2969
|
+
* Claude constructs regex patterns using Python's `re.search()` syntax.
|
|
2970
|
+
* Maximum query length: 200 characters.
|
|
2971
|
+
*
|
|
2063
2972
|
* @category Tool Search
|
|
2973
|
+
* @since 4.0.0
|
|
2064
2974
|
*/
|
|
2065
2975
|
export type ToolSearchRegexParameters = typeof ToolSearchRegexParameters.Type;
|
|
2066
2976
|
/**
|
|
2067
2977
|
* Input parameters for BM25/natural language tool search.
|
|
2068
2978
|
*
|
|
2069
|
-
*
|
|
2979
|
+
* **When to use**
|
|
2980
|
+
*
|
|
2981
|
+
* Use when validating or constructing the natural-language query payload for
|
|
2982
|
+
* `ToolSearchBM25_20251119`.
|
|
2983
|
+
*
|
|
2984
|
+
* **Details**
|
|
2985
|
+
*
|
|
2986
|
+
* The payload contains Claude's natural-language `query`. BM25 searches tool
|
|
2987
|
+
* names, descriptions, argument names, and argument descriptions.
|
|
2988
|
+
*
|
|
2989
|
+
* @see {@link ToolSearchBM25_20251119} for the provider-defined tool that consumes these parameters
|
|
2990
|
+
*
|
|
2070
2991
|
* @category Tool Search
|
|
2992
|
+
* @since 4.0.0
|
|
2071
2993
|
*/
|
|
2072
2994
|
export declare const ToolSearchBM25Parameters: Schema.Struct<{
|
|
2073
2995
|
/**
|
|
@@ -2076,21 +2998,24 @@ export declare const ToolSearchBM25Parameters: Schema.Struct<{
|
|
|
2076
2998
|
readonly query: Schema.String;
|
|
2077
2999
|
}>;
|
|
2078
3000
|
/**
|
|
2079
|
-
*
|
|
3001
|
+
* Type of the parameters Claude supplies when invoking BM25 natural-language Anthropic tool search.
|
|
3002
|
+
*
|
|
2080
3003
|
* @category Tool Search
|
|
3004
|
+
* @since 4.0.0
|
|
2081
3005
|
*/
|
|
2082
3006
|
export type ToolSearchBM25Parameters = typeof ToolSearchBM25Parameters.Type;
|
|
2083
3007
|
/**
|
|
2084
3008
|
* Regex-based tool search for Claude models.
|
|
2085
3009
|
*
|
|
3010
|
+
* **Details**
|
|
3011
|
+
*
|
|
2086
3012
|
* Claude constructs regex patterns using Python's `re.search()` syntax to
|
|
2087
3013
|
* find tools. The regex is matched against tool names, descriptions,
|
|
2088
3014
|
* argument names, and argument descriptions.
|
|
2089
|
-
*
|
|
2090
3015
|
* Requires the "advanced-tool-use-2025-11-20" beta header.
|
|
2091
3016
|
*
|
|
2092
|
-
* @since 1.0.0
|
|
2093
3017
|
* @category Tool Search
|
|
3018
|
+
* @since 4.0.0
|
|
2094
3019
|
*/
|
|
2095
3020
|
export declare const ToolSearchRegex_20251119: <Mode extends Tool.FailureMode | undefined = undefined>(args: void) => Tool.ProviderDefined<"anthropic.tool_search_tool_regex_20251119", "AnthropicToolSearchRegex", {
|
|
2096
3021
|
readonly args: Schema.Void;
|
|
@@ -2118,14 +3043,22 @@ export declare const ToolSearchRegex_20251119: <Mode extends Tool.FailureMode |
|
|
|
2118
3043
|
/**
|
|
2119
3044
|
* BM25/natural language tool search for Claude models.
|
|
2120
3045
|
*
|
|
3046
|
+
* **When to use**
|
|
3047
|
+
*
|
|
3048
|
+
* Use when you want Claude to find relevant tools from a natural-language query
|
|
3049
|
+
* instead of a regex pattern.
|
|
3050
|
+
*
|
|
3051
|
+
* **Details**
|
|
3052
|
+
*
|
|
2121
3053
|
* Claude uses natural language queries to search for tools using the
|
|
2122
3054
|
* BM25 algorithm. The search is performed against tool names, descriptions,
|
|
2123
3055
|
* argument names, and argument descriptions.
|
|
2124
|
-
*
|
|
2125
3056
|
* Requires the "advanced-tool-use-2025-11-20" beta header.
|
|
2126
3057
|
*
|
|
2127
|
-
* @
|
|
3058
|
+
* @see {@link ToolSearchRegex_20251119} for the regex-pattern alternative
|
|
3059
|
+
*
|
|
2128
3060
|
* @category Tool Search
|
|
3061
|
+
* @since 4.0.0
|
|
2129
3062
|
*/
|
|
2130
3063
|
export declare const ToolSearchBM25_20251119: <Mode extends Tool.FailureMode | undefined = undefined>(args: void) => Tool.ProviderDefined<"anthropic.tool_search_tool_bm25_20251119", "AnthropicToolSearchBM25", {
|
|
2131
3064
|
readonly args: Schema.Void;
|