getSkillNamespace

View as MarkdownOpen in Claude

Returns the namespace key used to store this skill’s data within the agent’s global data. This key scopes the skill’s state to avoid collisions with other skills.

Takes no parameters.

Returns

string — The namespace key for this skill instance.

Example

1import { SkillBase } from '@signalwire/sdk';
2
3// Inside a skill method
4const namespace = this.getSkillNamespace();
5console.log(namespace); // e.g., "skill:weather"