Class: ActiveMcp::Response::Tools
- Inherits:
-
Object
- Object
- ActiveMcp::Response::Tools
- Defined in:
- app/models/active_mcp/response/tools.rb
Class Method Summary collapse
Class Method Details
.to_hash(auth_info:) ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 |
# File 'app/models/active_mcp/response/tools.rb', line 4 def self.to_hash(auth_info:) Tool.registered_tools.select do |tool_class| tool_class.visible?(auth_info) end.map do |tool_class| { name: tool_class.tool_name, description: tool_class.desc, inputSchema: tool_class.schema } end end |