add_object
Create a GameMaker object file and register it in the project. Optionally add event stubs by specifying event types and numbers.
Instructions
Create a GameMaker object .yy file with optional event stubs and register it in the project
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": {
"projectDir": "<projectDir>",
"objectName": "<objectName>"
},
"name": "add_object"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| events | No | Array of event definitions to create | |
| objectName | Yes | Name of the object to create | |
| projectDir | Yes | Absolute path to the GameMaker project directory |