WordPress: Wp theme file write
wordpress_specialist_wp_theme_file_writeWrites a file inside a WordPress theme from Base64 content, creates missing parent directories, and can verify SHA-256 to prevent overwriting drifted files.
Instructions
[UNIFIED] Write a file inside a theme. content_base64 is the decoded body (capped at 5 MB, S-18). PHP file writes additionally require edit_themes AND !DISALLOW_FILE_EDIT (S-17); non-PHP writes only need edit_themes. Pass expected_sha256 for optimistic concurrency: the companion compares against the current file's sha256 and returns sha_mismatch (409) on drift (S-19). When create_dirs is true (default) any missing parent directories are created. Requires Airano MCP Bridge v2.14.0+.
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>",
"theme_slug": "<theme_slug>",
"path": "<path>",
"content_base64": "<content_base64>"
},
"name": "wordpress_specialist_wp_theme_file_write"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| site | Yes | ||
| theme_slug | Yes | ||
| create_dirs | No | ||
| content_base64 | Yes | ||
| expected_sha256 | No |