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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"resource": "<resource>"
},
"name": "godot_parse_resource"
}
}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 |