apply_html_patch
Applies targeted patches to HTML files in Google Apps Script projects using anchor comments, regex, or fuzzy matching, with syntax validation and backup options.
Instructions
🎯 HTML-specialized patch system with normalization, regex matching, and anchor-based positioning for HTML files
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": {
"script_id": "<script_id>",
"file_name": "<file_name>",
"html_patch_request": "<html_patch_request>"
},
"name": "apply_html_patch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| options | No | HTML patch application options | |
| file_name | Yes | Target HTML file name to patch | |
| script_id | Yes | Apps Script project ID | |
| html_patch_request | Yes | HTML-specific patch request with multiple strategies |