forge_set_script
Write or update script source code files in Forge Engine projects, automatically saving and reloading changes in the editor.
Instructions
Write/update the source code of a script file. The file will be saved and reloaded in the editor.
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>",
"source": "<source>"
},
"name": "forge_set_script"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path to the script file | |
| source | Yes | Complete new source code for the file |