set_script_text
Overwrite an existing script asset's full source code, then run script_parse so the editor re-reads the script's name and attributes.
Instructions
Overwrite the source code of an existing script asset. Provide the full file contents in text. After changing the code, call script_parse so the editor re-reads the script's name and attributes. When NOT to use: to attach a script to an entity (use attach_script) or to create the script asset itself (use create_assets type="script").
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Full JavaScript/TypeScript source of the script | |
| assetId | Yes | Script asset id |