For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Log inSign up
Support
GuidesReference
GuidesReference
    • Core
      • Overview
    • Agents
      • Overview
      • AgentBase
      • AgentServer
      • Configuration
      • ContextBuilder
      • DataMap
      • FunctionResult
      • Helper Functions & Utilities
      • LiveWire
      • PomBuilder
      • Prefabs
      • SkillBase
      • SkillManager
        • addSkill
        • clear
        • getAllHints
        • getAllPromptSections
        • getAllTools
        • getLoadedSkillEntries
        • getMergedGlobalData
        • getSkill
        • hasSkill
        • hasSkillByKey
        • listSkillKeys
        • listSkills
        • loadedSkills
        • loadSkill
        • loadSkillByName
        • removeSkill
        • removeSkillByName
      • SkillRegistry
      • Skills
      • SwaigFunction
      • SwmlBuilder
      • SWMLService
    • RELAY
      • Overview
      • Actions
      • Call
      • Constants
      • Events
      • Message
      • RelayClient
      • RelayError
    • REST Client
      • Overview
      • Addresses
      • Calling
      • ChatResource
      • Compat
      • Datasphere
      • Fabric
      • ImportedNumbersResource
      • Logs
      • LookupResource
      • MFA
      • Number Groups
      • Phone Numbers
      • Project
      • PubSubResource
      • Queues
      • Recordings
      • Registry
      • RestClient
      • RestError
      • Short Codes
      • SIP Profile
      • Verified Callers
      • Video
LogoLogoSignalWire Docs
Log inSign up
Support
On this page
  • Parameters
  • skillName
  • config
  • Returns
  • Example
AgentsSkillManager

loadSkillByName

|View as Markdown|Open in Claude|
Was this page helpful?
Edit this page
Previous

removeSkill

Next
Built with

Look up a registered skill class by name in the global SkillRegistry, construct an instance, and add it via addSkill. Returns [false, message] if the name is not registered, the instantiation fails, or addSkill throws.

Parameters

skillName
stringRequired

Registered skill name (read from the target class’s SKILL_NAME).

config
SkillConfig

Optional configuration forwarded to the skill constructor.

Returns

Promise<[boolean, string]> — [true, ''] on success, [false, errorMessage] otherwise.

Example

1const [ok, err] = await agent.skillManager.loadSkillByName('datetime');
2if (!ok) throw new Error(err);