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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"old_id": "<old_id>",
"new_id": "<new_id>"
},
"name": "rename"
}
}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 |