create_script
Add a new RGSS script to an RPG Maker XP project, placing it above the Main script to run custom Ruby code.
Instructions
Create a new RGSS script. By default it is inserted just above "Main" (the conventional slot for custom scripts).
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": {
"name": "<name>",
"code": "<code>"
},
"name": "create_script"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | Ruby source code | |
| name | Yes | Script name | |
| position | No | Insert position (default: just above Main) |