Skip to main content
The @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

The client reads 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