call_method
Invoke methods on live nodes in a running Godot project by node path and method name, with optional arguments for dynamic control.
Instructions
Invoke a method on a live node in a running interactive Godot project. Resolves the node by path relative to the current scene (e.g., "Player", "World/Enemies/Boss") and calls the named method with optional arguments. Returns the serialized result. The project must be running via run_interactive.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | No | Arguments to pass to the method. Default: [] (no arguments). | |
| method | Yes | The method name to call on the node (e.g., "take_damage", "get_health", "set_position"). | |
| nodePath | Yes | Path to the target node relative to the current scene root (e.g., "Player", "UI/HealthBar"). Also accepts absolute paths like "/root/GameState". |