forge_get_script
Retrieve and read source code from GDScript (.gd) or C# (.cs) files to access script contents for development tasks.
Instructions
Read the source code of a GDScript (.gd) or C# (.cs) 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": "forge_get_script"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path to the script file, e.g., "res://scripts/player.gd" |