# View memories directory
await memory(command="view", path="/memories")
# Create a memory file
await memory(
command="create",
path="/memories/user_prefs.md",
file_text="# Preferences\n\n- Theme: dark\n- Language: Python",
)
# Update memory
await memory(
command="str_replace",
path="/memories/user_prefs.md",
old_str="- Theme: dark",
new_str="- Theme: light",
)
# View file contents
await memory(command="view", path="/memories/user_prefs.md")
# Delete
await memory(command="delete", path="/memories/old_notes.md")
# Rename/move
await memory(
command="rename",
old_path="/memories/temp.md",
new_path="/memories/archive/temp.md",
)