WordPress: Wp theme file patch
wordpress_specialist_wp_theme_file_patchPatch a WordPress theme text file by splicing specific line ranges to replace, insert, or delete content without full-file uploads for iterative CSS and template edits.
Instructions
[UNIFIED] Patch a text file inside a theme with a small line-range splice, avoiding full-file base64 uploads for iterative CSS and template edits. Lines are 1-based and inclusive. To replace lines 10-12 pass from_line=10, to_line=12. To insert before line 10 pass from_line=10, to_line=9. To append pass from_line=line_count+1, to_line=line_count. Empty content deletes the selected range. Pass expected_sha256 for optimistic concurrency; the companion rejects with sha_mismatch (409) if the file changed. Requires Airano MCP Bridge v2.18.3+.
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>",
"from_line": "<from_line>",
"to_line": "<to_line>",
"content": "<content>"
},
"name": "wordpress_specialist_wp_theme_file_patch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| site | Yes | ||
| content | Yes | ||
| to_line | Yes | ||
| from_line | Yes | ||
| theme_slug | Yes | ||
| expected_sha256 | No |