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.tools 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.
Error handling
Error handling
File downloads (binary responses)
File downloads (binary responses)
Actions that download a file (for example The returned dict, from both
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. call() and execute() both return this dict directly (it isn’t wrapped in a result object), so read its values with dict keys like result["content"].call() and execute():| Key | Type | Description |
|---|---|---|
content | bytes | Raw file bytes. Not JSON-serializable (see note). |
content_type | str | File MIME type (for example application/pdf), or application/octet-stream. |
status_code | int | HTTP status of the download response. |
headers | dict | Response headers. |
file_name | str | None | Filename from Content-Disposition (RFC 5987 filename* aware), else None. |
Environment Configuration
toolset.openai(mode="search_and_execute", account_ids=[...]).
Next Steps
- OpenAI Integration for building agents with function calling
- LangChain Integration for framework-based workflows
- Tool Search for natural language tool discovery
- Tool Filtering for advanced filtering patterns