Skip to main content

Parameters

ParameterTypeDefaultDescription
kindstr'unknown_builtin_tool'Built-in tool identifier, used as a discriminator

Functions

No specific functions - Abstract base class for built-in tools provided by model providers.

title: WebSearchTool sidebarTitle: WebSearchTool

Parameters

ParameterTypeDefaultDescription
search_context_sizeLiteral['low', 'medium', 'high']'medium'Controls how much context is retrieved from web searches
user_locationOptional[WebSearchUserLocation]NoneLocalizes search results based on user location
blocked_domainsOptional[list[str]]NoneDomains to exclude from search results
allowed_domainsOptional[list[str]]NoneIf provided, only these domains will be included in results
max_usesOptional[int]NoneMaximum number of web searches allowed
kindstr'web_search'The kind of tool

Functions

No specific functions - Built-in tool for web search functionality.

title: WebSearchUserLocation sidebarTitle: WebSearchUserLocation

Parameters

ParameterTypeDefaultDescription
citystr-The city where the user is located
countrystr-The country where the user is located (2-letter country code for OpenAI)
regionstr-The region or state where the user is located
timezonestr-The timezone of the user’s location

Functions

No specific functions - TypedDict for user location information.

title: CodeExecutionTool sidebarTitle: CodeExecutionTool

Parameters

ParameterTypeDefaultDescription
kindstr'code_execution'The kind of tool

Functions

No specific functions - Built-in tool for code execution functionality.

title: UrlContextTool sidebarTitle: UrlContextTool

Parameters

ParameterTypeDefaultDescription
kindstr'url_context'The kind of tool

Functions

No specific functions - Built-in tool for URL context access.

title: WebSearch sidebarTitle: WebSearch

Functions

WebSearch

Search the web for the given query and return formatted results. Parameters:
  • query (str): The search query
  • max_results (int): Maximum number of results to return (default: 10)
Returns:
  • str: Formatted string containing search results


title: WebRead sidebarTitle: WebRead

Functions

WebRead

Read and extract text content from a web page. Parameters:
  • url (str): The URL to read from
Returns:
  • str: Extracted text content from the webpage
I