Skip to main content

register_tool_functions

Function register_tool_functions 

Source
pub fn register_tool_functions(
    lua: &Lua,
    sandbox: Arc<dyn SandboxPolicy>,
) -> Result<(), LuaError>
Expand description

Registers all tool functions in the Lua orcs table.

The sandbox controls which paths are accessible. All file operations validate paths through the sandbox before any I/O.

Adds: orcs.read, orcs.write, orcs.grep, orcs.glob, orcs.mkdir, orcs.remove, orcs.mv

ยงErrors

Returns error if function registration fails.