***

title: createToolToken
slug: /reference/typescript/agents/configuration/session-manager/create-tool-token
description: Alias for generateToken.
max-toc-depth: 3
---------------------

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

Alias for [`generateToken`](/docs/server-sdks/reference/typescript/agents/configuration/session-manager/generate-token).
Generates a signed, base64url-encoded token binding a function name to a call ID.

## **Parameters**

<ParamField path="functionName" type="string" required={true} toc={true}>
  The SWAIG function name to bind.
</ParamField>

<ParamField path="callId" type="string" required={true} toc={true}>
  The call ID to bind.
</ParamField>

## **Returns**

`string` -- A base64url-encoded token string.

## **Example**

```typescript {4}
import { SessionManager } from '@signalwire/sdk';

const sm = new SessionManager();
const token = sm.createToolToken('lookup_order', 'call-abc123');
console.log(token);
```