femm_run_lua
Execute legacy FEMM 4.2 Lua scripts unchanged using FEMM 5's bundled Lua 4 interpreter. Spawns a standalone engine and returns stdout, stderr, and exit code.
Instructions
Run a legacy FEMM 4.2 Lua script unchanged with FEMM 5's bundled Lua 4 interpreter
(bin/femm-lua.bat on Windows: femm-lua -h -p <free port> script.lua args). It spawns its
own engine (not a session) and exits when done. VERIFIED on Windows with a small
newdocument/mi_probdef/mi_addnode/print script. Returns stdout/stderr/exit code. To port a
Lua script permanently, rewrite it with femm_run_script (MicroPython) instead.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"path": "<path>"
},
"name": "femm_run_lua"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | No | ||
| path | Yes | ||
| timeout | No | ||
| headless | No |