How to register ToolRegistrycsharp
new AgentTool( "execute_tool", "Execute a specific tool by name with the provided arguments.", ExecuteTool, new { type = "object", required = new[] { "tool_name" }, properties = new { tool_name = new { type = "string", description = "The exact name of the tool to execute (from search_tools)." }, tool_arguments = new { type = "object", description = "Arguments to pass to the tool as a JSON object." } } })