sitebay_site_edit_file
Edit files in WordPress wp-content directory to update themes, plugins, or custom code. Specify site domain, file path, and new content to modify site files.
Instructions
Edit a file in the site's wp-content directory.
Args: fqdn: The fully qualified domain name of the site file_path: Path to the file in wp-content (e.g., "wp-content/themes/mytheme/style.css") content: New content for the file
Returns: Success confirmation with file details
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": {
"fqdn": "<fqdn>",
"file_path": "<file_path>",
"file_edit_using_search_replace_blocks": "<file_edit_using_search_replace_blocks>"
},
"name": "sitebay_site_edit_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fqdn | Yes | ||
| file_path | Yes | ||
| file_edit_using_search_replace_blocks | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |