execute method
Execute the tool with the given input.
Implementation
@override
Future<ToolResult> execute(Map<String, dynamic> input) async {
if (_callFn != null) {
return _callFn(input);
}
return ToolResult.error('MCP tool not configured');
}