rename_domain
Move all memories from an old domain to a new one while preserving references by automatically creating an alias from the old domain name.
Instructions
Rename a domain. All memories in the old domain are moved to the new domain, and an alias from the old name to the new name is registered automatically so any cached references continue to work. Returns the number of memories renamed and the alias created. Fails if the new domain already has memories — use merge_domains (CLI) instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| new_domain | Yes | The new domain name. Must not already have live memories. | |
| old_domain | Yes | The current domain name to rename |