add_entity_scripts
Attach registered scripts to multiple entities, automatically creating script components when absent to enable gameplay behavior.
Instructions
Attach a parsed script to one or more entities, creating script components when needed.
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": {
"entityIds": "<entityIds>",
"script": "<script>"
},
"name": "add_entity_scripts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| index | No | Execution order index | |
| script | Yes | Registered script name | |
| entityIds | Yes | ||
| attributes | No |