Trilium offers a “Script API” that enables scripts to perform various useful functions. There are two main APIs available:
Please note that the Script API is currently experimental and may undergo changes in future updates.