insert_before_symbol
Add code before a specific symbol in GDScript files to modify Godot game projects. This tool helps developers insert content at precise locations within their scripts.
Instructions
Insert content before a named symbol in a GDScript file.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Path to the .gd file | |
| symbol | Yes | Name of the symbol to insert before | |
| content | Yes | Content to insert | |
| expectedHash | No | Expected content hash of the file. If provided, edit is rejected on mismatch. |