jar_add_file
Add a file from disk into a JAR at a specified path, with optional overwrite, to patch Java game resources.
Instructions
Add a file from disk into the JAR.
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>",
"jar_path": "<jar_path>",
"source_path": "<source_path>"
},
"name": "jar_add_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| jar_path | Yes | Destination path within JAR | |
| overwrite | No | Overwrite if exists (default: true) | |
| session_id | Yes | Session ID | |
| source_path | Yes | Source file on disk |