createToolToken

View as MarkdownOpen in Claude

Alias for generateToken. Generates a signed, base64url-encoded token binding a function name to a call ID.

Parameters

functionName
stringRequired

The SWAIG function name to bind.

callId
stringRequired

The call ID to bind.

Returns

string — A base64url-encoded token string.

Example

1import { SessionManager } from '@signalwire/sdk';
2
3const sm = new SessionManager();
4const token = sm.createToolToken('lookup_order', 'call-abc123');
5console.log(token);