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 18e36d35_e1f1_40ea_0eeb_cfa2d4e034bf["str_replace()"] a0c776a7_63ce_9752_6068_14794f180e7d["BetaAsyncAbstractMemoryTool"] 18e36d35_e1f1_40ea_0eeb_cfa2d4e034bf -->|defined in| a0c776a7_63ce_9752_6068_14794f180e7d a877ff69_249a_dde6_6779_91863320f091["str_replace()"] a877ff69_249a_dde6_6779_91863320f091 -->|calls| 18e36d35_e1f1_40ea_0eeb_cfa2d4e034bf 19b9272d_d835_6305_8e21_55eb6c8b2f96["execute()"] 19b9272d_d835_6305_8e21_55eb6c8b2f96 -->|calls| 18e36d35_e1f1_40ea_0eeb_cfa2d4e034bf a877ff69_249a_dde6_6779_91863320f091["str_replace()"] 18e36d35_e1f1_40ea_0eeb_cfa2d4e034bf -->|calls| a877ff69_249a_dde6_6779_91863320f091 style 18e36d35_e1f1_40ea_0eeb_cfa2d4e034bf fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
src/anthropic/lib/tools/_beta_builtin_memory_tool.py lines 224–226
async def str_replace(self, command: BetaMemoryTool20250818StrReplaceCommand) -> BetaFunctionToolResultType:
"""Replace text in a memory file."""
pass
Domain
Subdomains
Calls
Called By
Source
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 224.
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