read_script
Reads a GDScript file from a res:// path so you can inspect its source code for debugging, review, or editing in Godot projects.
Instructions
Read the source code of a GDScript file.
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": {
"path": "<path>"
},
"name": "read_script"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | res:// path to the script |