Skip to main content

register_mcp_tool

Function register_mcp_tool 

Source
pub fn register_mcp_tool<T: McpTool>(tool: T) -> Option<Ref<CoreMcpTool>>
Expand description

Registers a tool for the life of the process. Returns None when the definition is invalid or its name is already registered, or when a string in it contains a NUL.