pz_api
Retrieve Project Zomboid's Java API for Lua: look up public methods and fields on game objects, including argument and return types, by class, class.member, or member name.
Instructions
Project Zomboid's Java API, from the installed game's jar: the public methods and fields Lua can call on PZ objects, with argument and return types. name = a class ("IsoPlayer": its members and its parents'), "Class.member" ("IsoPlayer.getStats", parents count too), or a member name alone ("getModData": every class that has it). Lua calls methods with a colon: player:getStats().
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": {
"name": "<name>"
},
"name": "pz_api"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| max_hits | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |