***

title: validateToolToken
slug: /reference/typescript/agents/configuration/session-manager/validate-tool-token
description: Alias for validateToken with reordered parameters.
max-toc-depth: 3
---------------------

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

Alias for [`validateToken`](/docs/server-sdks/reference/typescript/agents/configuration/session-manager/validate-token)
with reordered parameters (function name first, then token, then call ID).

## **Parameters**

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

<ParamField path="token" type="string" required={true} toc={true}>
  The base64url-encoded token to validate.
</ParamField>

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

## **Returns**

`boolean` -- `true` if the token is valid and not expired.

## **Example**

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

const sm = new SessionManager();
const token = sm.generateToken('get_weather', 'call-abc123');
const valid = sm.validateToolToken('get_weather', token, 'call-abc123');
console.log('Valid:', valid); // true
```