read_file_contents
Reads a file's text contents from a Pterodactyl-hosted server, truncating large files by default to protect context size; set max_chars to return more.
Instructions
Read the text contents of a file on the server. Automatically truncates very large files to protect context size unless max_chars is increased.
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": {
"server_id": "<server_id>",
"file": "<file>"
},
"name": "read_file_contents"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | File path inside container (e.g. '/package.json') | |
| max_chars | No | Maximum characters to return (default 50000) | |
| server_id | Yes | Short server identifier |