jar_edit_class_constants
Edit numeric constants in Java .class bytecode to alter compiled game behavior, replacing old values with new ones without source code.
Instructions
Edit numeric constants in .class file bytecode.
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": {
"session_id": "<session_id>",
"class_path": "<class_path>",
"replacements": "<replacements>"
},
"name": "jar_edit_class_constants"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| class_path | Yes | Path to .class file | |
| occurrence | No | Which occurrence to replace (0-indexed) | |
| session_id | Yes | Session ID | |
| value_type | No | Value type hint | |
| replacements | Yes | Map of old_value -> new_value |