MCPcopy Create free account
hub / github.com/MiniMax-AI/Mini-Agent / execute

Method execute

mini_agent/tools/skill_tool.py:40–54  ·  view source on GitHub ↗

Get detailed information about specified skill

(self, skill_name: str)

Source from the content-addressed store, hash-verified

38 }
39
40 async def execute(self, skill_name: str) -> ToolResult:
41 """Get detailed information about specified skill"""
42 skill = self.skill_loader.get_skill(skill_name)
43
44 if not skill:
45 available = ", ".join(self.skill_loader.list_skills())
46 return ToolResult(
47 success=False,
48 content="",
49 error=f"Skill '{skill_name}' does not exist. Available skills: {available}",
50 )
51
52 # Return complete skill content
53 result = skill.to_prompt()
54 return ToolResult(success=True, content=result)
55
56
57def create_skill_tools(

Callers 2

test_get_skill_toolFunction · 0.95

Calls 4

ToolResultClass · 0.85
get_skillMethod · 0.80
list_skillsMethod · 0.80
to_promptMethod · 0.80

Tested by 2

test_get_skill_toolFunction · 0.76