edit
Modify files and structures via module/action dispatch, supporting hex and APK patches, table entry/field changes, offset rebuilds, checksum fixes, and template writes with dry-run.
Instructions
Edit files/structures. Dispatches by module+action. Supports dry_run.
Modules/actions: hex: hex_patch (path, offset, bytes_hex, dry_run) apk: smali_patch (src_dir, file_rel, old, new, dry_run) tables: clone_entry, edit_fields, rebuild_offsets, checksum_fix format: write_template Every write snapshots first and logs to job_log.
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": {
"module": "<module>",
"action": "<action>"
},
"name": "edit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | ||
| module | Yes | ||
| params | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |