add_script_component_script
Adds a registered script to an entity that already has a script component and returns the updated entity summary. If no script component exists, use attach_script instead.
Instructions
Add a named script to an entity that ALREADY has a script component. Returns the updated entity summary. When NOT to use: if the entity has no script component yet, prefer attach_script, which creates the component and attaches the script in one call.
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": {
"id": "<id>",
"scriptName": "<scriptName>"
},
"name": "add_script_component_script"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Entity ID | |
| scriptName | Yes | Registered script name (the parsed script's name attribute) |