pz_source
Retrieves decompiled Java source for a Project Zomboid class or method from your local game jar, so you can read real overloads and code to understand the game's behavior.
Instructions
What a PZ Java method actually does: its decompiled code, made on your PC from your own game jar with CFR (off unless PZ_MCP_CFR is set). cls = "IsoPlayer" or "zombie.characters.IsoPlayer"; method = a name (all its overloads) or "" for the class outline. For understanding PZ only: never copy PZ code into a mod.
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": {
"cls": "<cls>"
},
"name": "pz_source"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cls | Yes | ||
| method | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |