Home / Function/ str_replace() — anthropic-sdk-python Function Reference

str_replace() — anthropic-sdk-python Function Reference

Architecture documentation for the str_replace() function in _beta_builtin_memory_tool.py from the anthropic-sdk-python codebase.

Entity Profile

Dependency Diagram

graph TD
  a877ff69_249a_dde6_6779_91863320f091["str_replace()"]
  d2acad16_3d69_9ffc_b385_3f353b4288f2["BetaAbstractMemoryTool"]
  a877ff69_249a_dde6_6779_91863320f091 -->|defined in| d2acad16_3d69_9ffc_b385_3f353b4288f2
  6f0540a3_65b1_70b4_ce28_d4ad7f2afd09["execute()"]
  6f0540a3_65b1_70b4_ce28_d4ad7f2afd09 -->|calls| a877ff69_249a_dde6_6779_91863320f091
  18e36d35_e1f1_40ea_0eeb_cfa2d4e034bf["str_replace()"]
  18e36d35_e1f1_40ea_0eeb_cfa2d4e034bf -->|calls| a877ff69_249a_dde6_6779_91863320f091
  18e36d35_e1f1_40ea_0eeb_cfa2d4e034bf["str_replace()"]
  a877ff69_249a_dde6_6779_91863320f091 -->|calls| 18e36d35_e1f1_40ea_0eeb_cfa2d4e034bf
  style a877ff69_249a_dde6_6779_91863320f091 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

src/anthropic/lib/tools/_beta_builtin_memory_tool.py lines 111–113

    def str_replace(self, command: BetaMemoryTool20250818StrReplaceCommand) -> BetaFunctionToolResultType:
        """Replace text in a memory file."""
        pass

Subdomains

Frequently Asked Questions

What does str_replace() do?
str_replace() is a function in the anthropic-sdk-python codebase, defined in src/anthropic/lib/tools/_beta_builtin_memory_tool.py.
Where is str_replace() defined?
str_replace() is defined in src/anthropic/lib/tools/_beta_builtin_memory_tool.py at line 111.
What does str_replace() call?
str_replace() calls 1 function(s): str_replace.
What calls str_replace()?
str_replace() is called by 2 function(s): execute, str_replace.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free