chronos_refactor_symbol
Performs graph-edge-verified multi-file symbol refactoring—preview usages, rename, or safe-delete—while separating verified edits from ambiguous sites and enforcing syntax validation with rollback.
Instructions
Perform graph-edge-verified multi-file refactoring (preview_usages, rename, safe_delete). Separates verified CALLS/TESTS/import edits from ambiguous member-access/shadowed candidate sites, enforces multi-file syntax validation + atomic rollback, and guards public/entrypoint/trait-impl deletions.
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": {
"symbol": "<symbol>",
"action": "<action>"
},
"name": "chronos_refactor_symbol"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | Optional defining source file path for symbol disambiguation | |
| force | No | Override ambiguity/homonym or dependent guards when applying rename/safe_delete (default: false) | |
| action | Yes | Refactoring action: preview_usages | rename | safe_delete | preview_usages |
| symbol | Yes | Target symbol name or 'Class/method' path to analyze, rename, or safely delete | |
| dry_run | No | Preview multi-file diff and candidate sites without writing disk (default: false) | |
| new_name | No | New identifier name (required when action == 'rename') | |
| max_answer_chars | No | Optional maximum character budget for the response (default: 24000; <= 0 disables truncation) |