pub struct RoboticsToolRegistry { /* private fields */ }Expand description
Registry of robotics tools exposed to MCP clients.
Call RoboticsToolRegistry::new to get a registry pre-populated with all
built-in tools, or start from RoboticsToolRegistry::empty and register
tools manually.
Implementations§
Source§impl RoboticsToolRegistry
impl RoboticsToolRegistry
Sourcepub fn register_tool(&mut self, tool: ToolDefinition)
pub fn register_tool(&mut self, tool: ToolDefinition)
Register a single tool. Overwrites any existing tool with the same name.
Sourcepub fn list_tools(&self) -> Vec<&ToolDefinition>
pub fn list_tools(&self) -> Vec<&ToolDefinition>
List every registered tool (unordered).
Sourcepub fn get_tool(&self, name: &str) -> Option<&ToolDefinition>
pub fn get_tool(&self, name: &str) -> Option<&ToolDefinition>
Look up a tool by its exact name.
Sourcepub fn list_by_category(&self, category: ToolCategory) -> Vec<&ToolDefinition>
pub fn list_by_category(&self, category: ToolCategory) -> Vec<&ToolDefinition>
Return all tools belonging to the given category.
Sourcepub fn to_mcp_schema(&self) -> Value
pub fn to_mcp_schema(&self) -> Value
Produce a full MCP-compatible JSON schema describing every tool.
Trait Implementations§
Source§impl Clone for RoboticsToolRegistry
impl Clone for RoboticsToolRegistry
Source§fn clone(&self) -> RoboticsToolRegistry
fn clone(&self) -> RoboticsToolRegistry
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RoboticsToolRegistry
impl Debug for RoboticsToolRegistry
Auto Trait Implementations§
impl Freeze for RoboticsToolRegistry
impl RefUnwindSafe for RoboticsToolRegistry
impl Send for RoboticsToolRegistry
impl Sync for RoboticsToolRegistry
impl Unpin for RoboticsToolRegistry
impl UnsafeUnpin for RoboticsToolRegistry
impl UnwindSafe for RoboticsToolRegistry
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more