read_script
Reads and returns the full content of a GDScript file in the Godot project by specifying its resource path.
Instructions
Read the contents 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 | Script file path (e.g. 'res://scripts/player.gd') |