Tools Reference
Comprehensive documentation for all 30+ integrated tools. Web search, code interpreter, weather, stocks, and more.
All Available Tools
Complete list of 30 tools you can use with the API
web_searchacademic_searchextreme_searchreddit_searchx_searchyoutube_searchtrove_searchcode_interpreterrag_searchstock_pricestock_chartcurrency_convertercoin_datacoin_data_by_contractcoin_ohlcweatherfind_place_on_mapnearby_places_searchflight_trackerflight_live_trackertravel_advisormovie_tv_searchtrending_moviestrending_tvdatetimetext_translatemermaid_diagrammemory_managerretrievegreeting
Tool Details
Search and explore tool specifications
web_search
Search the web for current information
Parameters
query(string)*- Search queryExample
{
"name": "web_search",
"arguments": {
"query": "latest AI developments 2024"
}
}academic_search
Search academic papers and research
Parameters
query(string)*- Academic search queryExample
{
"name": "academic_search",
"arguments": {
"query": "quantum computing applications"
}
}extreme_search
Deep multi-source research
Parameters
query(string)*- Research queryExample
{
"name": "extreme_search",
"arguments": {
"query": "climate change mitigation strategies"
}
}reddit_search
Search Reddit posts and discussions
Parameters
query(string)*- Search querysubreddit(string)- Specific subredditsortBy(string)- Sort by: relevance, hot, top, newtimeFilter(string)- Time filter: all, year, month, week, dayExample
{
"name": "reddit_search",
"arguments": {
"query": "best programming languages 2024",
"sortBy": "top",
"timeFilter": "month"
}
}code_interpreter
Execute Python code in a sandboxed environment
Parameters
title(string)*- Title for the code executioncode(string)*- Python code to executeicon(string)*- Icon type: stock, date, calculation, defaultExample
{
"name": "code_interpreter",
"arguments": {
"title": "Calculate Fibonacci",
"code": "def fib(n):\n if n <= 1: return n\n return fib(n-1) + fib(n-2)\n\nprint([fib(i) for i in range(10)])",
"icon": "calculation"
}
}stock_price
Get current stock prices
Parameters
symbol(string)*- Stock ticker symbol (e.g., AAPL)Example
{
"name": "stock_price",
"arguments": {
"symbol": "AAPL"
}
}currency_converter
Convert between currencies
Parameters
amount(number)*- Amount to convertfrom(string)*- Source currency codeto(string)*- Target currency codeExample
{
"name": "currency_converter",
"arguments": {
"amount": 100,
"from": "USD",
"to": "EUR"
}
}coin_data
Get cryptocurrency data
Parameters
coinId(string)*- Coin ID (e.g., bitcoin, ethereum)Example
{
"name": "coin_data",
"arguments": {
"coinId": "bitcoin"
}
}weather
Get weather information
Parameters
location(string)*- City name or locationlatitude(number)- Latitude coordinatelongitude(number)- Longitude coordinateExample
{
"name": "weather",
"arguments": {
"location": "Sydney"
}
}flight_tracker
Track flights between airports
Parameters
departure(string)*- Departure airport codearrival(string)*- Arrival airport codedate(string)- Date (YYYY-MM-DD)Example
{
"name": "flight_tracker",
"arguments": {
"departure": "SYD",
"arrival": "MEL",
"date": "2024-02-15"
}
}movie_tv_search
Search for movies and TV shows
Parameters
query(string)*- Movie or TV show nameExample
{
"name": "movie_tv_search",
"arguments": {
"query": "Inception"
}
}text_translate
Translate text between languages
Parameters
text(string)*- Text to translatetargetLanguage(string)*- Target language code (e.g., fr, es, ja)Example
{
"name": "text_translate",
"arguments": {
"text": "Hello world",
"targetLanguage": "fr"
}
}mermaid_diagram
Create Mermaid diagrams
Parameters
content(string)*- Mermaid diagram syntaxExample
{
"name": "mermaid_diagram",
"arguments": {
"content": "graph TD\n A[Start] --> B[Process]\n B --> C[End]"
}
}Auto Mode
Let the AI automatically choose which tools to use
Instead of specifying which tools to use, you can set tool_choice: "auto"and let the AI decide based on the user's request.
{
"model": "llama-4",
"messages": [
{
"role": "user",
"content": "What's the weather in Paris and book me a flight from Sydney?"
}
],
"tools": [
// Include all relevant tools
],
"tool_choice": "auto" // AI will use weather and flight_tracker
}autoAI decides whether and which tools to use
noneDisable tool use for this request
requiredForce the AI to use at least one tool
Auto Tool Selection
Let AI automatically choose the right tools for complex tasks
Use "tools": ["auto"] in your API requests to enable intelligent tool selection. The AI will automatically choose from all available tools based on the user's request.
See Tools in Action
View practical examples of how to use each tool effectively
Start Building
Get your API key and integrate these powerful tools
Need custom tools or enterprise integrations?