Read a remote file
pz_read_fileRead any text file from your Project Zomboid gameserver, including SandboxVars.lua, logs, and save files, using direct paths or handy shortcuts.
Instructions
Read a file from the gameserver as text. Call this when you need the raw contents — a full SandboxVars.lua, a log, a save file. file may be an absolute path or one of the shortcuts 'ini', 'sandbox', 'spawnregions'.
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": {
"file": "<file>"
},
"name": "pz_read_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Absolute remote path, or one of the shortcuts 'ini' (main server config), 'sandbox' (SandboxVars.lua), 'spawnregions', 'spawnpoints'. | |
| service_id | No | Nitrado service id. Defaults to NITRADO_SERVICE_ID when omitted. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |