find_nodes
Search the live runtime scene tree to find nodes by name pattern or type, including dynamically spawned nodes.
Instructions
Search the live runtime scene tree by name pattern and/or type, including dynamically spawned nodes. For static .tscn analysis, use get_scene_tree. Requires run_interactive.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pattern | No | Glob-style name pattern to match (e.g., "Enemy*", "*Spawn*"). Default: "*" (all nodes). | |
| typeFilter | No | Filter by Godot class name (e.g., "CharacterBody2D", "Area2D", "Sprite2D"). Uses is_class() so subclasses match too. |