Disambiguation

Not to be confused with SceneTree class

see docs

You typically use the path parameter to specify the path to the node in your scene that you want to reference:

@Godot
class Main: Node {
    @SceneTree(path: "CharacterBody2D") var player: PlayerController?
    @SceneTree(path: "locations/spawnpoint") var spawnpoint: Node2D?
    @SceneTree(path: "Telepoint") var teleportArea: Area2D?
}