CLI Tools

View as MarkdownOpen in Claude

The TypeScript Server SDK ships one command-line tool, swaig-test, for local development. It loads an agent file, renders its SWML, lists its SWAIG functions, and executes a function with arguments you supply, all without deploying or placing a call. The package’s bin entry makes it available through npx after installation.

npm install @signalwire/sdk

Available tools

CommandPurpose
swaig-testTest SWAIG functions and generate SWML output locally

Local development workflow

# 1. Inspect the generated SWML
npx swaig-test src/agent.ts --dump-swml
# 2. List available tools
npx swaig-test src/agent.ts --list-tools
# 3. Test a specific function
npx swaig-test src/agent.ts --exec get_info --arg topic=SignalWire