Read GDScript File
godot_read_scriptReads GDScript (.gd) or text-based resource files from Godot projects to access script content for editing or analysis.
Instructions
Reads the content of a GDScript (.gd) or other text-based resource file.
Args:
file_path (string): res:// path e.g. "res://player/player.gd"
Returns: { path: string, content: string }
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": {
"file_path": "<file_path>"
},
"name": "godot_read_script"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | res:// path to the script file |