mod-remap
Remap Fabric or Quilt mod jars to Yarn or Mojang names; preview changes by default or apply to write the remapped output jar.
Instructions
Remap a Fabric or Quilt mod jar to yarn or mojang names. Previews unless apply is true: the preview writes nothing and reports outputJar and outputExists; apply writes outputJar, replacing an existing file (a remap needs Java and downloads mappings). An outputJar equal to jarPath is rejected. Example: {"jarPath":"/mods/example-1.0.0.jar","toMapping":"mojang"}
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": {
"jarPath": "<jarPath>",
"toMapping": "<toMapping>"
},
"name": "mod-remap"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| apply | No | Write outputJar, replacing an existing file; default only previews. | |
| force | No | Rebuild ignoring the remap cache; refresh Yarn build metadata. | |
| jarPath | Yes | Path to the Fabric or Quilt mod jar. | |
| version | No | Minecraft version; default read from the mod's minecraft dependency. | |
| outputJar | No | Output path; default <modId>-<modVersion>-<toMapping>.jar beside jarPath. | |
| toMapping | Yes | Namespace to remap into. |