MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / activateSkill

Method activateSkill

packages/node-sdk/src/session.ts:477–490  ·  view source on GitHub ↗
(name: string, args?: string | undefined)

Source from the content-addressed store, hash-verified

475 }
476
477 async activateSkill(name: string, args?: string | undefined): Promise<void> {
478 this.ensureOpen();
479 const skillName = normalizeRequiredString(
480 name,
481 'Skill name cannot be empty',
482 ErrorCodes.SKILL_NAME_EMPTY,
483 );
484 const skillArgs = normalizeOptionalString(args);
485 await this.rpc.activateSkill({
486 sessionId: this.id,
487 name: skillName,
488 ...(skillArgs !== undefined ? { args: skillArgs } : {}),
489 });
490 }
491
492 async activatePluginCommand(
493 pluginId: string,

Callers

nothing calls this directly

Calls 4

ensureOpenMethod · 0.95
normalizeRequiredStringFunction · 0.85
normalizeOptionalStringFunction · 0.70
activateSkillMethod · 0.65

Tested by

no test coverage detected