Class: HTM::MCP::GetRobotTool
- Inherits:
-
FastMcp::Tool
- Object
- FastMcp::Tool
- HTM::MCP::GetRobotTool
- Defined in:
- lib/htm/mcp/tools.rb
Overview
Tool: Get current robot info
Instance Method Summary collapse
Instance Method Details
#call ⇒ Object
67 68 69 70 71 72 73 74 75 76 77 78 79 80 |
# File 'lib/htm/mcp/tools.rb', line 67 def call Session.logger&.info "GetRobotTool called" htm = Session.htm_instance robot = HTM::Models::Robot[htm.robot_id] { success: true, robot_id: htm.robot_id, robot_name: htm.robot_name, initialized: Session.robot_initialized?, memory_summary: robot.memory_summary }.to_json end |