show_lua_function
Prints one Lua function or table from a Project Zomboid file with line numbers, so you can inspect a specific definition without reading the entire file.
Instructions
Print ONE Lua function or table from a file, with line numbers, instead of reading a whole file. path = a file in your workspace (your mod) or in PZ's media folder, e.g. "media/lua/client/ISUI/ISInventoryPane.lua"; name = "ISInventoryPane:onMouseDown", "MyMod.onTick", "Recipe". A short path is searched for under the readable folders (see pz_status).
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": {
"path": "<path>",
"name": "<name>"
},
"name": "show_lua_function"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |