From c24709d02d8e8ce441946c5db594b4bd6a498ffb Mon Sep 17 00:00:00 2001 From: Bryce Date: Wed, 29 Apr 2026 16:18:02 -0700 Subject: [PATCH] docs: update room navigator skill with correct get_current_room_name method Replace raw eval JSON with godot_game_call_method for checking current room, matching the actual Godot MCP tool interface used in practice. --- .opencode/skills/kq4-room-navigator/SKILL.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.opencode/skills/kq4-room-navigator/SKILL.md b/.opencode/skills/kq4-room-navigator/SKILL.md index 405e546..15646a7 100644 --- a/.opencode/skills/kq4-room-navigator/SKILL.md +++ b/.opencode/skills/kq4-room-navigator/SKILL.md @@ -35,8 +35,9 @@ Room identification at runtime: The canonical way is via `MainGame.get_current_room_name()`: +Use `godot_game_call_method` to call it directly on the node path: ```json -{"command": "eval", "params": {"code": "get_tree().root.get_node('Node2D').get_current_room_name()"}} +Call method get_current_room_name on /root/Node2D ``` Returns a string like `"kq4_010_forest_path"`. The implementation extracts the filename from the scene script's resource path (`script_path.trim_suffix(".gd").get_file()`), NOT the node name (which is always `"background"`).