Create or overwrite a file
write_fileCreate or overwrite an entire text file on a hosted Minecraft server. Use it for full-file writes; edit existing sections with edit_file instead.
Instructions
DESTRUCTIVE: replaces the file's entire content if it exists. Creates or overwrites a text file. To change part of an existing file, use edit_file instead. The server and plugins usually read config changes only after a reload or restart.
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>",
"content": "<content>"
},
"name": "write_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. | |
| content | Yes | The complete new content of the file. |