write_file
Write file content to a specified path within a WordPress site's directory, with support for text or base64 encoding and optional backup.
Instructions
Escribe un archivo dentro del ABSPATH del sitio.
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": {
"site": "<site>",
"path": "<path>",
"content": "<content>"
},
"name": "write_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | Yes | site_id, site_label o base_url del sitio. | |
| path | Yes | ||
| content | Yes | ||
| encoding | No | text | |
| backup | No |