Skip to content

Interface and Operations / Script Library

All scripts written by users or installed from the script marketplace can be viewed in the "Script Library", and can be edited and managed.

View Mode

By default, when a script is opened, it enters "View Mode". The code is read-only and cannot be modified to prevent accidental changes.

view-mode.png

Edit Mode

When code modification is needed, click the "Edit" button to enter Edit Mode. In this mode, other logged-in users cannot enter Edit Mode, preventing concurrent edits from overwriting each other.

The script being edited is a draft and does not affect the currently active code. After completing the edits, you need to click the "Publish" button to make the new script take effect.

After completing script editing, it is recommended to exit Edit Mode as soon as possible

edit-mode.png

Execute Function

After selecting a function, click the "Execute" button to run 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.

run-func.png

Script Library Hierarchy

The Script Library is divided into 3 levels:

  1. "Script Set"
  2. "Script"
  3. "@DFF.API(...) function within a script"

Among these, Script Sets and Scripts are created manually by users, while "@DFF.API(...) function within a script" is automatically generated based on the user's written code.

script-set-script-func.png

According to the hierarchy, the IDs of scripts and functions include the IDs of their upper levels, as shown below:

ID
Script Set dev
Script dev__example
Function ID dev__example.hello_world

Reference Documentation

For details on script development, please refer to the documentation Script Development