@markalex If you are actually talking about plugs, we have to make a distinction. Plugs can define "functions" and "syscalls". Functions are basically a core part of the plug system. Everything is a function, i.e. commands, code widgets, document editors, etc. In a manifest it's the entries you define like this
name: example
functions:
foo:
path: ....
command: ....
Where foo is now a function. These functions can be manually invoked (using a syscall), like this system.invokeFunction("example.foo", ...);. This is a little clunky though, so there is basically a short circuit way, which are called syscalls and are defined like this.
name: example
functions:
foo:
path: ....
syscall: "example.foo"
Now you can call your function like this example.foo(...) and it'll be available everywhere.