Other Tools: native
This document covers provider-native tools like web search or code execution.
native Tools
Native tools allow you to access functionality that is built directly into the LLM provider’s backend, such as web search or a code interpreter environment for data analysis.
Support for native tools varies by provider.
Configuration
You enable native tools by specifying their type.
tools:
- native: search # Enable the provider's built-in web search.
- native: code # Enable the provider's built-in code interpreter.Provider Support
- Gemini: Supports both
searchandcode. Note that the Gemini API has a limitation where you can only use one native tool at a time, and it cannot be combined with other (non-native) tools. - Anthropic: Supports
searchonly. - OpenAI: Supports both
searchandcodevia theopenaiprovider (not the legacyopenai/chatprovider). - Codex: Supports both
searchandcodevia thecodexprovider (ChatGPT subscription, Codex backend).