@invoke/sdk package is the primary way to route agent tool calls through the Invoke execution runtime from TypeScript. Install it once, instantiate a client, and replace direct API calls in your agent loop with invoke.call().
Installation
Client setup
INVOKE_API_KEY from the environment automatically. Pass the value explicitly to ensure TypeScript can verify the key is present at startup.
invoke.call()
The primary method. Routes a tool call through Invoke’s execution controls.Parameters
Response
Error handling
Next steps
- Quick Start — end-to-end example with the SDK
- CLI — invoke tools from the terminal
- Authentication — API key setup