apply_anchor_patch
Apply anchor-based patches to a Google Apps Script file, targeting specific code sections using anchored patch references to modify scripts programmatically.
Instructions
アンカーベースパッチ(apply_enhanced_patchのエイリアス)
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>",
"anchored_patches": "<anchored_patches>"
},
"name": "apply_anchor_patch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_name | Yes | ||
| script_id | Yes | ||
| anchored_patches | Yes |