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

Function buildSkillApprovalMessage

src/services/skills/skillInvocation.ts:21–33  ·  view source on GitHub ↗
(
	skillName: string,
	args: string | undefined,
	skillContent: Pick<SkillContent, "source" | "description">,
)

Source from the content-addressed store, hash-verified

19type SkillContentForFormatting = Pick<SkillContent, "source" | "description" | "instructions">
20
21export function buildSkillApprovalMessage(
22 skillName: string,
23 args: string | undefined,
24 skillContent: Pick<SkillContent, "source" | "description">,
25): string {
26 return JSON.stringify({
27 tool: "skill",
28 skill: skillName,
29 args,
30 source: skillContent.source,
31 description: skillContent.description,
32 })
33}
34
35export function buildSkillResult(
36 skillName: string,

Callers 3

executeMethod · 0.90
executeMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected