add_anchors_to_file
Add navigation anchors to functions, methods, or classes in a Google Apps Script file for precise patching.
Instructions
⚓ Anchor Generation System - Automatically add navigation anchors to functions for precise patching
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>"
},
"name": "add_anchors_to_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_name | Yes | Target file name to add anchors | |
| script_id | Yes | Google Apps Script project ID | |
| anchor_types | No | Types of code elements to anchor (default: ["function", "method"]) | |
| preview_only | No | Preview anchors without applying (default: false) |