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
      • BedrockAgent
      • CLI Tools
      • Configuration
      • ContextBuilder
      • DataMap
      • FunctionResult
      • Helper Functions
      • LiveWire
      • MCP Gateway
      • PomBuilder
      • Prefabs
      • Search
      • SkillBase
        • cleanup
        • define_tool
        • get_global_data
        • get_hints
        • get_instance_key
        • get_parameter_schema
        • get_prompt_sections
        • get_skill_data
        • register_tools
        • setup
        • update_skill_data
        • validate_env_vars
        • validate_packages
      • Skills
      • SWAIGFunction
      • SWMLBuilder
      • SWMLService
      • WebService
    • RELAY
      • Overview
      • Actions
      • Call
      • Constants
      • Events
      • Message
      • RelayClient
      • RelayError
    • REST Client
      • Overview
      • Addresses
      • Calling
      • Chat
      • Compat
      • Datasphere
      • Fabric
      • Imported Numbers
      • Logs
      • Lookup
      • MFA
      • Number Groups
      • Phone Numbers
      • Project
      • PubSub
      • Queues
      • Recordings
      • Registry
      • RestClient
      • Short Codes
      • SignalWireRestError
      • SIP Profile
      • Verified Callers
      • Video
LogoLogoSignalWire Docs
Log inSign up
Support
On this page
  • Parameters
  • Returns
  • Example
AgentsSkillBase

get_skill_data

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

register_tools

Next
Built with

Read this skill instance’s namespaced state from raw_data["global_data"]. Each skill instance gets an isolated namespace to prevent collisions between multiple skills.

Parameters

raw_data
dict[str, Any]Required

The raw_data dict passed to SWAIG function handlers.

Returns

dict[str, Any] — The skill’s state, or empty dict if not found.

Example

1def _handle_query(self, args, raw_data):
2 state = self.get_skill_data(raw_data)
3 last_query = state.get("last_query", "none")
4 return FunctionResult(f"Previous query was: {last_query}")