Claude text editor

by AnthropicCode

The text editor tool is Anthropic's tool that lets Claude view, create and edit files. Claude sends view, create, str_replace and insert commands, your application applies them, and max_characters caps how much of a large file Claude sees at once. On Opper it works on the Messages endpoint, on Claude from Anthropic, Vertex and Bedrock alike.

UseClaude text editorwithin

Add Claude text editor on Opper

Set up with agents

Paste this into your coding agent (Claude Code, Cursor, Codex, and more) and it will set up and build with Opper for you.

Get your API key

Key info

Tool
text_editor
Endpoint
Messages
Routes
AnthropicVertexBedrock

In your code

curl https://api.opper.ai/v3/compat/v1/messages \
-H "Authorization: Bearer $OPPER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "anthropic/claude-haiku-5-5", "max_tokens": 1024,
"messages": [{"role": "user", "content": "List the files in this repo."}],
"tools": [{"type": "text_editor_20250728", "name": "str_replace_based_edit_tool"}]}'

Use Claude text editor with these models

Step-by-step setup for Claude text editor on each of these models through Opper.

More tools on Opper

Use Claude text editor through Opper

One key, 700+ models, a choice of region, and zero data retention. Tools run in the same request, with every call in your traces.

Get startedView Documentation