File Write New
file.write_newCreate or write text files for Minecraft server management with optional overwrite protection and safety confirmations.
Instructions
Create a text file with touch -> write, optionally refusing to overwrite existing files. Requires confirm=true or dry_run=true.
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": {
"target": "<target>",
"text": "<text>"
},
"name": "file.write_new"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| daemonId | No | MCSManager daemon id. Uses MCSM_DEFAULT_DAEMON_ID if omitted. | |
| uuid | No | MCSManager instance UUID. Uses MCSM_DEFAULT_INSTANCE_UUID if omitted. | |
| target | Yes | File path. | |
| text | Yes | New file content. | |
| overwrite | No | Overwrite if the file already exists. | |
| confirm | No | Required true for high-risk operations. | |
| dry_run | No | Return a preview without executing the operation. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||