***

title: getSteps
slug: /reference/typescript/agents/context-builder/get-steps
description: Return the map of all steps in a context.
max-toc-depth: 3
---------------------

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

[context]: /docs/server-sdks/reference/typescript/agents/context-builder/context

[step]: /docs/server-sdks/reference/typescript/agents/context-builder/step

Return the internal map of all steps in this context. This is an internal
method on [`Context`][context].

## **Parameters**

None.

## **Returns**

`Map<string, Step>` -- The step map keyed by step name.

## **Example**

```typescript {8}
import { ContextBuilder } from '@signalwire/sdk';

const builder = new ContextBuilder();
const ctx = builder.addContext('default');
ctx.addStep('greet').setText('Greet the caller.');
ctx.addStep('ask_name').setText('Ask for their name.');

console.log(ctx.getSteps().size); // 2
```