Skip to content

AnthropicTool

15 exports Added in v1.0.0 Source

Models

Coordinate

Added in v1.0.0 Source

Signature

declare const Coordinate: Tuple<readonly Array<Constraint>>

Schemas

Signature

declare const ProviderDefinedTools: Schema.Union<
  [
    typeof Generated.BetaBashTool20241022,
    typeof Generated.BetaBashTool20250124,
    typeof Generated.BetaCodeExecutionTool20250522,
    typeof Generated.BetaComputerUseTool20241022,
    typeof Generated.BetaComputerUseTool20250124,
    typeof Generated.BetaTextEditor20241022,
    typeof Generated.BetaTextEditor20250124,
    typeof Generated.BetaTextEditor20250429,
    typeof Generated.BetaTextEditor20250728,
    typeof Generated.BetaWebSearchTool20250305,
  ]
>;

ProviderDefinedTools type

Added in v1.0.0 Source

Signature

type ProviderDefinedTools = typeof ProviderDefinedTools.Type;

Tool Calling

A helper method which takes in the name of a tool as returned in the response from a large language model provider, and returns either the provider-defined name for of the tool as found in the corresponding Toolkit, or undefined if the tool name is not a provider-defined tool.

For example, if the large language model provider returns the tool name "web_search" in a response, calling this method would return "AnthropicWebSearch".

This method is primarily exposed for use by other Effect provider integrations which can utilize Anthropic tools (i.e. Amazon Bedrock).

Signature

declare function getProviderDefinedToolName(name: string): string | undefined;

Tools

Signature

declare const Bash_20241022: any;

Signature

declare const Bash_20250124: any;

Signature

declare const CodeExecution_20250522: any;

Signature

declare const CodeExecution_20250825: any;

Allow Claude to interact with computer environments through the computer use tool, which provides screenshot capabilities and mouse/keyboard control for autonomous desktop interaction.

Signature

declare const ComputerUse_20241022: any;

Allow Claude to interact with computer environments through the computer use tool, which provides screenshot capabilities and mouse/keyboard control for autonomous desktop interaction.

Signature

declare const ComputerUse_20250124: any;

Allow Claude to directly interact with your files, providing hands-on assistance rather than just suggesting changes.

Signature

declare const TextEditor_20241022: any;

Allow Claude to directly interact with your files, providing hands-on assistance rather than just suggesting changes.

Signature

declare const TextEditor_20250124: any;

Allow Claude to directly interact with your files, providing hands-on assistance rather than just suggesting changes.

Signature

declare const TextEditor_20250429: any;

Allow Claude to directly interact with your files, providing hands-on assistance rather than just suggesting changes.

Signature

declare const TextEditor_20250728: any;

Signature

declare const WebSearch_20250305: any;