rename
Move a topic to a new id and automatically rewrite every wiki link pointing to it, including prefix links. Blocks duplicate ids and returns the count of updated links.
Instructions
Move a topic and rewrite wiki links that pointed to it.
Also rewrites prefix links: renaming scratch/ → archive/scratch/ fixes
[[scratch/x]] links. Refuses if new_id already exists. Returns the count of
rewritten links so the model knows the blast radius.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| new_id | Yes | Destination topic id | |
| old_id | Yes | Existing topic id to move |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |