Parse resource
godot_parse_resourceParse Godot resource files into structured JSON output, extracting node trees, resources, connections from scenes, and class outlines from scripts.
Instructions
Parse a resource into structured JSON-ish output. Scenes (.tscn) and resources (.tres) yield their node tree, ext/sub resources and connections; scripts (.gd/.cs) yield an outline of classes, functions, signals, exports and variables.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| resource | Yes | A resource path, e.g. "res://main/player.tscn" or "main/player.tscn". | |
| project_root | No | Path to the Godot project root (folder containing project.godot). Defaults to $GODOT_PROJECT_ROOT or an upward search from the working directory. | |
| response_format | No | Output format. "markdown" is human-readable; "json" is structured. | markdown |