rename_obfuscated_variables
Renames obfuscated variables in decompiled Java source to meaningful names, adds changelog comments, and generates a comprehensive rename log while preserving business logic.
Instructions
Copies mavenized source to final output directory, applies obfuscated variable renames with meaningful names, adds changelog comments to modified files, and generates a comprehensive rename log. NEVER modifies business logic.
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": {
"renames": "<renames>"
},
"name": "rename_obfuscated_variables"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| logPath | No | Path to output the rename changelog. Defaults to logs/variable_rename_changelog.txt. | |
| renames | Yes | Array of rename operations. Each entry: { file: "relative/path.java", oldName: "var1", newName: "testCount", line: 42 }. | |
| sourceDir | No | Path to the source mavenized project to copy from. Defaults to mavenized_merged_source. | |
| targetDir | No | Path to the target output directory. Defaults to mavenized_final_output. |