renumber
Give an initiative a new number — fixing a number collision after a merge. Renames its file and asset folder (keeping the slug, padded to the collection's width) and rewrites every link and "#" reference to it across the…
Instructions
Give an initiative a new number — fixing a number collision after a merge. Renames its file and asset folder (keeping the slug, padded to the collection's width) and rewrites every link and "#" reference to it across the repo. to defaults to the next number, coined as create does. For one file of a duplicate-number pair, pass ref as its path. dry_run: true returns the plan without writing.
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": {
"ref": "<ref>"
},
"name": "renumber"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | The new number; default: the next free one. | |
| ref | Yes | Initiative (ticket/issue): "collection#n" (e.g. "lgm#22"), a bare number, or a path. | |
| dry_run | No | ||
| collection | No |