plan_rename
Finds every occurrence of a string in a repository, classifies each by context, and returns rename-safe edits plus skip reasons so you can plan safe single or batch renames.
Instructions
Finds all locations where a string appears in a repo and classifies each by context: string literal, import path, class name, code identifier, documentation, or comment. Returns structured edit entries for rename-safe occurrences and skip entries with reasons for the rest. Accepts a single rename or a batch mapping.
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": {
"repo": "<repo>",
"old_name": "<old_name>",
"new_name": "<new_name>"
},
"name": "plan_rename"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | Yes | Repository name (as shown in list_repos) | |
| new_name | Yes | The replacement string | |
| old_name | Yes | The string to find and rename |