Write Server File
pterodactyl_write_fileWrite content to a file on a Pterodactyl server, creating it if missing or overwriting existing files. Specify the server ID, full file path, and content to update game panel files.
Instructions
Write content to a file on the server. Creates the file if it doesn't exist, overwrites if it does.
Args:
server (string): Server identifier
file (string): Full path to the file (e.g., '/config.yml')
content (string): Content to write to the file
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": "<server>",
"file": "<file>",
"content": "<content>"
},
"name": "pterodactyl_write_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Full file path to write to | |
| server | Yes | Server identifier (short ID like 'abc12345') | |
| content | Yes | File content to write |