move_entity_script
Rearrange script execution order for an entity by moving it to a specified index, adjusting behavior sequence in PlayCanvas projects.
Instructions
Move a script to a new execution-order index on an entity.
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": {
"entityId": "<entityId>",
"script": "<script>",
"index": "<index>"
},
"name": "move_entity_script"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| index | Yes | New execution-order index | |
| script | Yes | Registered script name | |
| entityId | Yes | Entity ID |