get_scene_dependencies
Parse a .tscn scene file to list external resource dependencies including scripts, textures, and subscenes, helping safely refactor or move scene assets.
Instructions
Parse a .tscn file for ext_resource references (scripts, textures, subscenes). Use to inspect what a scene depends on before refactoring or moving files. Returns: the queried scene path and dependencies[] from ext_resource refs (path, type, optional uid). Errors if scene file does not exist.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectPath | Yes | Path to the Godot project directory | |
| scenePath | Yes | Path to the .tscn file relative to the project root (e.g. "scenes/main.tscn") |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scene | No | ||
| dependencies | No |