Skip to content

Lua scripts

cap_lua manages a managed Lua root (demo: /fatfs/scripts/), exposing tools to list, write, and run scripts synchronously or asynchronously. Writable scripts live under that root.

Which native hooks scripts can call (GPIO, delays, publishing events to the router, …) depends on registered lua_module_* / lua_driver_* modules. claw_event_router’s run_script action can also launch Lua without the LLM.

cap_lua Tool list, async execution, and automation run_script
Lua extension modules lua_module_* / lua_driver_* registration and native APIs inside scripts