jar_add_file_content
Write text content as a new file inside a JAR archive. Use it to add configs, manifests, or resources to Java-based game mods during patching.
Instructions
Write text content as a new file in 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>",
"content": "<content>"
},
"name": "jar_add_file_content"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | File content | |
| encoding | No | Encoding (default: utf-8) | |
| jar_path | Yes | Destination path within JAR | |
| session_id | Yes | Session ID |