***

title: get_global_data
slug: /reference/python/agents/skill-base/get-global-data
description: Return data to merge into the agent's global_data dictionary.
max-toc-depth: 3
---------------------

For a complete index of all SignalWire documentation pages, fetch https://signalwire.com/docs/llms.txt

Return data to merge into the agent's `global_data` dictionary. Override to
provide skill-specific session data that should be available to all SWAIG
function handlers.

## **Returns**

`dict[str, Any]` -- Key-value pairs (default: empty dict).

## **Example**

```python {7}
from signalwire.core.skill_base import SkillBase

class WeatherSkill(SkillBase):
    SKILL_NAME = "weather"
    SKILL_DESCRIPTION = "Provides weather information"

    def get_global_data(self):
        return {
            "weather_api_base": "https://api.weatherapi.com/v1",
            "default_units": self.params.get("units", "fahrenheit")
        }

    def setup(self) -> bool:
        return True

    def register_tools(self):
        pass
```