***

title: setFunctions
slug: /reference/typescript/agents/context-builder/step/set-functions
description: Set which SWAIG functions are available during this step.
max-toc-depth: 3
---------------------

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

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

Set which SWAIG functions are available during this step. Restricting functions
per step prevents the AI from calling irrelevant tools.

## **Parameters**

<ParamField path="functions" type="string | string[]" required={true} toc={true}>
  Either `"none"` to disable all functions, or a list of function names to allow.
</ParamField>

## **Returns**

[`Step`][ref-step] -- Self for method chaining.

## **Example**

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

const builder = new ContextBuilder();
const ctx = builder.addContext('default');
const greet = ctx.addStep('greet');
greet.setText('Welcome the caller.');
greet.setFunctions('none');
const verify = ctx.addStep('verify');
verify.setText('Verify the caller\'s identity.');
verify.setFunctions(['lookup_account', 'verify_identity']);
```