Search the Web
Tavily
Tavily
Search the Web
Execute a web search query using Tavily Search. Returns ranked results with titles, URLs, and content snippets. Optionally includes an LLM-generated answer, images, raw page content, and usage info.
ActionAI Tool
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
query | text | Required | The search query to execute. |
search_depth | select | Optional | Controls latency vs relevance: 'basic' (default), 'advanced' (2 credits), 'fast', or 'ultra-fast'. (options: Advanced, Basic, Fast, Ultra-fast) |
chunks_per_source | number | Optional | Maximum chunks (up to 500 chars each) returned per source. Only set this when search_depth is 'advanced'. Range: 1-3. |
max_results | number | Optional | Maximum number of search results to return. Range: 0-20. Default: 5. |
topic | select | Optional | Search category: 'general' (default) or 'news' (real-time updates) or 'finance'. (options: General, News, Finance) |
time_range | select | Optional | Filter results by recency: 'day', 'week', 'month', 'year' (or 'd', 'w', 'm', 'y'). (options: Day, Week, Month, Year, d, w, m, y) |
start_date | text | Optional | Return results published after this date. Format: YYYY-MM-DD. |
end_date | text | Optional | Return results published before this date. Format: YYYY-MM-DD. |
include_answer | select | Optional | Include an LLM-generated answer. Leave empty to use Tavily's default false. 'basic' returns a quick answer; 'advanced' returns a detailed answer. (options: Basic, Advanced) |
include_raw_content | select | Optional | Include parsed HTML content per result. Leave empty to use Tavily's default false. 'markdown' returns markdown; 'text' returns plain text and may increase latency. (options: Markdown, Text) |
include_images | yes/no | Optional | Include query-related images in the response. Default: false. |
include_image_descriptions | yes/no | Optional | When include_images is true, add descriptive text for each image. Default: false. |
include_favicon | yes/no | Optional | Include the favicon URL for each result. Default: false. |
include_domains | array of text | Optional | List of domains to specifically include in the results. Maximum 300. |
exclude_domains | array of text | Optional | List of domains to exclude from the results. Maximum 150. |
country | text | Optional | Boost results from a specific country (e.g. 'united states', 'united kingdom'). Only applies when topic is 'general'. |
auto_parameters | yes/no | Optional | Let Tavily auto-configure search parameters based on query intent. Uses 2 API credits. Default: false. |
exact_match | yes/no | Optional | Only return results containing exact quoted phrases in query. Default: false. |
include_usage | yes/no | Optional | Include credit usage information in the response. Default: false. |
safe_search | yes/no | Optional | Enterprise only. Filter adult or unsafe content from results. Not supported for fast or ultra-fast search depths. Default: false. |
Outputs
| Name | Type | Description |
|---|---|---|
statusCode | number | HTTP status code |
body | object | Tavily Search response containing ranked results and optional answer/images |
query | text | The search query that was executed |
answer | text | LLM-generated answer to the query. Included only when include_answer is true, basic, or advanced. |
images | array of object | List of query-related images from image search. Included only when include_images is true. |
url | text | URL of the image |
description | text | Descriptive text for the image (only when include_image_descriptions is true) |
results | array of object | Ranked list of search results |
title | text | Title of the search result |
url | text | URL of the search result |
content | text | Short content snippet from the result |
score | number | Relevance score of the result |
raw_content | text | Full parsed HTML content (only when include_raw_content is set) |
favicon | text | Favicon URL (only when include_favicon is true) |
images | array of object | Images extracted from this result. Included only when include_images is true. |
response_time | number | Time in seconds the request took |
auto_parameters | object | Parameters selected by Tavily when auto_parameters is true |
topic | text | Auto-selected search topic |
search_depth | text | Auto-selected search depth |
usage | object | Credit usage details (only when include_usage is true) |
credits | number | Number of API credits consumed |
request_id | text | Unique request identifier for support |