rename_domain
Renames a domain by moving all its memories to a new name and creating an alias to keep cached references working. Use when you need to change a domain name without breaking existing links.
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 |