change: rename function

This commit is contained in:
lilong.129
2025-05-26 08:49:06 +08:00
parent 778344c826
commit e60c362257
3 changed files with 5 additions and 5 deletions

View File

@@ -80,8 +80,8 @@ func (s *MCPServer4XTDriver) GetTool(name string) *mcp.Tool {
return nil
}
// GetToolByActionMethod returns the tool that handles the given action method
func (s *MCPServer4XTDriver) GetToolByActionMethod(actionMethod option.ActionMethod) ActionTool {
// GetToolByAction returns the tool that handles the given action method
func (s *MCPServer4XTDriver) GetToolByAction(actionMethod option.ActionMethod) ActionTool {
if s.actionToolMap == nil {
return nil
}