write_file
Create or overwrite a file on a cPanel server, with an automatic backup saved to .claude_backups before writing. Specify a relative directory, filename, and full content.
Instructions
Create or overwrite a file on the cPanel server (automatically saves a backup in .claude_backups first).
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": {
"file": "<file>",
"content": "<content>"
},
"name": "write_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dir | No | Relative directory path (leave empty for root). | |
| file | Yes | Target file name. | |
| content | Yes | Complete file content to write. |