***

title: getGlobalData
slug: /reference/typescript/agents/skill-base/get-global-data
description: Return data to merge into the agent's global_data object.
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` object. Override to
provide skill-specific session data that should be available to all SWAIG
function handlers.

## **Returns**

`Record<string, unknown>` -- Key-value pairs (default: empty object).

## **Example**

```typescript {2}
class MySkill extends SkillBase {
  getGlobalData(): Record<string, unknown> {
    return { skill_version: '1.0.0' };
  }
}
```