***

title: getStep
slug: /reference/typescript/agents/context-builder/context/get-step
description: Get an existing step by name.
max-toc-depth: 3
---------------------

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

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

Get an existing step by name for inspection or modification.

## **Parameters**

<ParamField path="name" type="string" required={true} toc={true}>
  Step name to look up.
</ParamField>

## **Returns**

[`Step`][step] if found, `undefined`
otherwise.

## **Example**

```typescript {7-10}
import { ContextBuilder } from '@signalwire/sdk';

const builder = new ContextBuilder();
const ctx = builder.addContext('default');
ctx.addStep('collect_info').setText('Collect the caller\'s account information.');

const step = ctx.getStep('collect_info');
if (step) {
  step.setFunctions(['verify_identity']);
}
```