write_file
Create or overwrite text files directly on a Pterodactyl-hosted server container by specifying the server ID, target path, and full content.
Instructions
Create or overwrite a text file directly on the server.
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>",
"content": "<content>"
},
"name": "write_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Target file path inside container (e.g. '/index.js') | |
| content | Yes | Full text content to write to the file | |
| server_id | Yes | Short server identifier |