Interface and Operations / Script Lib
All scripts written by users or installed from the Script Market can be viewed, edited, and managed in the "Script Lib".
View Mode
By default, when a script is opened, it enters "View Mode", where the code is read-only and cannot be modified to prevent accidental changes.
Edit Mode
When you need to modify the code, click the "Edit" button to enter Edit Mode. In this mode, other logged-in users cannot enter Edit Mode to avoid overwriting each other's edits.
The script being edited is a draft and does not affect the currently effective code. After completing the edits, you need to click the "Publish" button to make the new script effective.
After completing script edits, it is recommended to exit Edit Mode as soon as possible
Execute Function
After selecting a function, click the "Execute" button to execute the selected function. The output from the print(...)
function and the return value of the function will be displayed in the output box at the bottom.
Script Lib Hierarchy
The Script Lib is divided into 3 levels:
- "Script Set"
- "Script"
- "Func API within the Script"
Among them, Script Sets and Scripts are created manually by users, while "Func APIs within the Script" are automatically generated based on the code written by users.
According to the hierarchy, the IDs of Scripts and Func APIs include the IDs of their upper levels, as follows:
ID | |
---|---|
Script Set | dev |
Script | dev__example |
Func API ID | dev__example.hello_world |
Reference Guide
For detailed information on script development, please refer to the Guide Script Development