access-validate
Validate access widener or access transformer entries against a Minecraft version's bytecode to catch invalid or mismatched access declarations before building.
Instructions
Check an access widener or access transformer against a Minecraft version's bytecode, entry by entry. Pass format, exactly one of content or path, version, and mapping (the file's namespace; required, it overrides a widener header). scope picks the jar; projectPath defaults it to loader. Example: {"format":"access-widener","path":"/p/m.accesswidener","version":"1.21.10","mapping":"intermediary"}
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": {
"format": "<format>",
"version": "<version>",
"mapping": "<mapping>"
},
"name": "access-validate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | The file to read. | |
| scope | No | Jar: vanilla, merged or loader; default loader with projectPath, else vanilla. | |
| format | Yes | access-widener (Fabric) or access-transformer (Forge, NeoForge). | |
| content | No | The file's text. | |
| mapping | Yes | Namespace of the file's names; srg: transformers; intermediary, yarn: wideners. | |
| version | Yes | Minecraft version to check against. | |
| projectPath | No | Workspace whose runtime jar to check against. |