Read a file in the server folder
read_fileRetrieve contents of files inside the Minecraft test server folder, including configs, datapack files, and logs; use base64 encoding for binary files.
Instructions
Reads a file inside the test server folder: configs, datapack files, logs. Use encoding base64 for binary files. The RCON password in server.properties is hidden. Limited to maxFileBytes.
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": "read_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path inside the test server folder, for example "world/datapacks/my_pack/pack.mcmeta" | |
| encoding | No | text |