Read a file
read_fileReads text files such as server.properties, plugin configs, or log files from a hosted Minecraft server; use tail_lines to limit long logs. Binary files are not supported.
Instructions
Returns the content of a text file such as server.properties, a plugin config, or logs/latest.log. Output is cut at 100000 characters; use tail_lines for long logs. Binary files (jars, worlds) cannot be read.
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 | File path, relative to the server's root directory, such as "server.properties" or "plugins/LuckPerms/config.yml". | |
| server | No | Server identifier or UUID. Omit to use the configured server (PEBBLEHOST_SERVER_ID); other servers are refused unless PEBBLEHOST_ALLOW_ALL_SERVERS is set. | |
| tail_lines | No | Return only the last this many lines, for logs. |