Interface: AnthropicTextEditorTool
@providerprotocol/ai / anthropic / AnthropicTextEditorTool
Interface: AnthropicTextEditorTool
Section titled “Interface: AnthropicTextEditorTool”Defined in: src/providers/anthropic/types.ts:936
Text editor tool for file viewing and editing.
Enables Claude to view, create, and edit files with commands like view, str_replace, create, and insert.
No beta header required.
Example
Section titled “Example”const tool: AnthropicTextEditorTool = { type: 'text_editor_20250728', name: 'str_replace_based_edit_tool', max_characters: 10000,};Properties
Section titled “Properties”max_characters?
Section titled “max_characters?”
optionalmax_characters:number
Defined in: src/providers/anthropic/types.ts:942
Max characters for view truncation (20250728+ only)
name:
"str_replace_based_edit_tool"|"str_replace_editor"
Defined in: src/providers/anthropic/types.ts:940
Tool name (version-specific)
type:
"text_editor_20250728"|"text_editor_20250124"
Defined in: src/providers/anthropic/types.ts:938
Tool type identifier (version-specific)