Quick Start
The most common pattern: create a toolset and give your agent search and execute tools. The agent discovers and runs tools on demand.openaiTools to any OpenAI-compatible model and the agent will search for relevant tools, then execute them automatically. See the OpenAI integration guide for a full agent loop.
Fetch Tools
When you need specific tools instead of search and execute:Filtering by provider, action, or pattern
Filtering by provider, action, or pattern
Multi-account usage
Multi-account usage
Tool Execution
Direct tool execution (for debugging)
Direct tool execution (for debugging)
Direct execution is useful for testing and debugging. In production, your agent framework handles tool calls automatically.
File downloads (binary responses)
File downloads (binary responses)
Actions that download a file (for example The narrowed
googledrive_unified_download_file, documents_download_file, or any *_unified_download_file) return raw bytes plus metadata, not parsed JSON. The SDK decides from the response Content-Type: JSON is parsed as usual, and anything else is treated as a file download. Because execute() is typed to return a JSON object, use the exported isBinaryDownloadResult guard to narrow the result to the file shape.result describes the file:| Key | Type | Description |
|---|---|---|
content | Buffer | Raw file bytes. Not JSON-serializable (see note). |
contentType | string | File MIME type (for example application/pdf), or application/octet-stream. |
statusCode | number | HTTP status of the download response. |
headers | object | Response headers. |
fileName | string | null | Filename from Content-Disposition (RFC 5987 filename* aware), else null. |
Environment Configuration
getTools({ accountIds: [...] }).
Next Steps
- OpenAI Integration for building agents with function calling
- Vercel AI SDK for streaming workflows
- Tool Search for natural language tool discovery
- Tool Filtering for advanced filtering patterns