MCPcopy Create free account
hub / github.com/Zoo-Code-Org/Zoo-Code / buildSkillResult

Function buildSkillResult

src/services/skills/skillInvocation.ts:35–54  ·  view source on GitHub ↗
(
	skillName: string,
	args: string | undefined,
	skillContent: SkillContentForFormatting,
)

Source from the content-addressed store, hash-verified

33}
34
35export function buildSkillResult(
36 skillName: string,
37 args: string | undefined,
38 skillContent: SkillContentForFormatting,
39): string {
40 let result = `Skill: ${skillName}`
41
42 if (skillContent.description) {
43 result += `\nDescription: ${skillContent.description}`
44 }
45
46 if (args) {
47 result += `\nProvided arguments: ${args}`
48 }
49
50 result += `\nSource: ${skillContent.source}`
51 result += `\n\n--- Skill Instructions ---\n\n${skillContent.instructions}`
52
53 return result
54}

Callers 4

executeMethod · 0.90
executeMethod · 0.90
parseMentionsFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected