skills

skills.execute

execute(skillId: string, input: SkillInput): Promise<SkillResult>

Invoke a specific skill by its registered id.

skillIdstringThe id of the SkillDef to run.
inputSkillInputArbitrary input passed verbatim to skill.run.

Returns: Promise<SkillResult>

Example

const result = await api.skills.execute("csv", { file, instruction: "infer schema" });