collect_tools

Function collect_tools 

Source
pub fn collect_tools() -> ToolCollection
Expand description

Collect all tools registered via the #[tool] macro.

This function discovers all tools that were registered at compile time using the #[tool] attribute macro.

ยงExample

use tools_rs::{collect_tools, list_tool_names};

let tools = collect_tools();
println!("Available tools: {:?}", list_tool_names(&tools));