Class: ListTool
- Inherits:
-
MCP::Tool
- Object
- MCP::Tool
- ListTool
- Defined in:
- lib/exe.rb
Class Method Summary collapse
Class Method Details
.call(name:) ⇒ Object
112 113 114 115 116 |
# File 'lib/exe.rb', line 112 def self.call(name:) return MCP::Tool::Response.new([{ type: "text", text: "Name must be a string" }], error: true) unless name.is_a?(String) result = ObsidianFetch.list_notes($manager.vault, name) MCP::Tool::Response.new([{ type: "text", text: result.text }], error: result.error) end |