Skip to main content

Install

Use

danubeTools(client, helpers, options) returns three tools keyed by name, ready to spread into generateText, streamText or an agent loop: The AI SDK’s tool and jsonSchema helpers are passed in rather than imported, so danube has no dependency on ai and the same call works with the v4 (parameters) and v5 (inputSchema) tool shapes. Options: serviceId to limit search to one service, readyOnly: true to hide tools this account has not connected, maxResults for the search page size, asText: false to return objects instead of JSON text.

Why three tools rather than one per catalog entry

The catalog has thousands of tools and changes daily. Search keeps the prompt small and current; describe gives the model the schema only for the tool it is about to call.