List remote files
pz_list_filesExplore your gameserver filesystem by listing directories or using glob patterns to recursively find files like saves, logs, and mods.
Instructions
List a directory on the gameserver, or search it recursively when a glob pattern is given (e.g. '*.lua'). Call this to explore the server filesystem — saves, logs, mods — beyond the known config files.
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": {
"directory": "<directory>"
},
"name": "pz_list_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| search | No | Optional recursive glob pattern, e.g. '*.ini'. | |
| directory | Yes | Absolute remote directory to list. | |
| service_id | No | Nitrado service id. Defaults to NITRADO_SERVICE_ID when omitted. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |