Class: HTM::MCP::ShutdownGroupTool
- Inherits:
-
FastMcp::Tool
- Object
- FastMcp::Tool
- HTM::MCP::ShutdownGroupTool
- Defined in:
- lib/htm/mcp/group_tools.rb
Overview
Tool: Shutdown a robot group
Instance Method Summary collapse
Instance Method Details
#call(name:) ⇒ Object
440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 |
# File 'lib/htm/mcp/group_tools.rb', line 440 def call(name:) Session.logger&.info "ShutdownGroupTool called: name=#{name.inspect}" group = GroupSession.get_group(name) unless group return { success: false, error: "Group '#{name}' not found in this session" }.to_json end GroupSession.remove_group(name) Session.logger&.info "Group #{name} shutdown complete" { success: true, group_name: name, message: "Group '#{name}' has been shutdown" }.to_json end |