Read Game Server File
read_gameserver_fileRead text content of a gameserver file (UTF-8 text up to 2 MB). Returns the file text as text and its revision (send it back as expectedRevision when writing). Images, archives, compiled or encrypted scripts and other binary files cannot be read and return an error: do not retry them, use list_gameserver_files to see names and sizes instead. Credential values (passwords, tokens, connection strings) come back as [configured]; write the placeholder back unchanged to keep the stored value. Requires an active ZapX Pass (see server instructions).
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": {
"serviceId": "<serviceId>",
"path": "<path>"
},
"name": "read_gameserver_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| scope | No | Without scope paths start at the server root (as `list_gameserver_files` without scope shows them); `config`/`active` resolve paths from the game data root; `savegame` additionally restricts to savegame paths. Read and write a file with the same scope. | |
| serviceId | Yes | ID of the Gameserver: the "id" field from list_account_services or list_gameservers (e.g. "cmabc123..."). The numericId shown in the panel (e.g. "180") is accepted too. IDs of other service types do not work here. |