Skip to navigation

hasSkill

View as MarkdownOpen in Claude

Check whether a skill with the given name is currently loaded.

Parameters

skillName
SkillNameOrStringRequired

Skill name to check. Built-in names autocomplete; any other string is accepted.

Returns

boolean — true if the skill is loaded, false otherwise.

Example

import { AgentBase, DateTimeSkill } from '@signalwire/sdk';
const agent = new AgentBase({ name: 'assistant', route: '/assistant' });
await agent.addSkill(new DateTimeSkill());
console.log(agent.hasSkill('datetime')); // true
console.log(agent.hasSkill('web_search')); // false