pub fn load_tool_definitions(config: &Config) -> Result<Vec<ToolDefinition>>Expand description
Load all tool scripts from config and extract their definitions.
For each [tools.script.<name>] entry, reads the script file, creates
a temporary Lua VM to extract the tool table metadata, and converts
the parameter declarations to OpenAI JSON Schema.
Called once at server startup.