game_script
Attach, detach, or retrieve GDScript source for any node in Godot. Control node scripts directly to manage game logic without manual editor steps.
Instructions
Attach, detach, or get source of node scripts
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | Action: attach, detach, get_source | |
| source | No | GDScript source code (for attach) | |
| nodePath | Yes | Path to the node | |
| className | No | Class the script extends |