Skip to content

feat(anthropic): add text editor tool support for Claude 4 models #7197

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jul 10, 2025

Conversation

dancer
Copy link
Collaborator

@dancer dancer commented Jul 10, 2025

background

Anthropic released Claude 4 models with an updated text editor tool (text_editor_20250429) that uses a new naming convention and removes the undo_edit command functionality.

summary

  • add text_editor_20250429 tool for Claude 4 Opus & Sonnet
  • use str_replace_based_edit_tool name (vs str_replace_editor for older versions)
  • remove undo_edit command support as per Claude 4 specifications
  • use computer-use-2025-01-24 beta flag

verification

  • tool properly integrated into anthropic provider
  • correct beta flag and tool name mapping

tasks

  • created text-editor_20250429.ts with correct tool schema
  • updated anthropic-tools.ts exports and documentation
  • added tool mapping in anthropic-prepare-tools.ts
  • added tool type to anthropic-api-types.ts
  • removed undo_edit command for Claude 4 compatibility

future work

  • monitor for additional Claude 4 tool updates and capabilities

related issue #6471 #6752

@dancer dancer changed the title Add text editor tool support for Claude 4 models feat(anthropic): add text editor tool support for Claude 4 models Jul 10, 2025
@cloudycotton
Copy link

Would support for #5921 be added as well?

@lgrammel lgrammel merged commit b9ddcdd into main Jul 10, 2025
9 checks passed
@lgrammel lgrammel deleted the js/anthropic branch July 10, 2025 13:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy