remove_script_function
Delete a function and its entire body from a GDScript file in Godot 4 projects to clean up code and remove unused methods.
Instructions
Remove a function and its entire body from a GDScript file.
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": {
"projectPath": "<projectPath>",
"scriptPath": "<scriptPath>",
"funcName": "<funcName>"
},
"name": "remove_script_function"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectPath | Yes | Absolute path to the project directory | |
| scriptPath | Yes | Script path (res:// or relative to project) | |
| funcName | Yes | Name of the function to remove |