Lua scripts running in medit have access to its
functionality through the moo
package.
Warning
Functions which are not documented here may or may not work differently in
the future and they may disappear without notice. Contact the author if you
need functions which are not present here.