overte_script_inject
Attach a JavaScript behavior script to an Overte entity by providing its entity ID and script URL. Optional metadata parameters can be passed into the script scope.
Instructions
Inject a JavaScript script to govern behavior of an in-world entity.
Live when the Overte bridge WebSocket client is connected; otherwise returns a clearly labeled simulated confirmation.
Return Format
{"success": bool, "message": str, "data": {"source": str, "script": {...}}}
Examples
overte_script_inject(entity_id="abc-123-def", script_url="https://example.com/behavior.js") overte_script_inject(entity_id="abc-123-def", script_url="https://example.com/click.js", script_data={"color": "red"})
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": {
"entity_id": "<entity_id>",
"script_url": "<script_url>"
},
"name": "overte_script_inject"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ctx | No | ||
| entity_id | Yes | Overte target entity UUID. | |
| script_url | Yes | JavaScript behavior script URL. | |
| script_data | No | Metadata parameters to inject into the script scope. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||