# Tools Source: /studio/agents/agent-tools > Give agents built-in tools such as web search, code execution, and image generation, or your own functions, to act beyond their knowledge. > **Warning:** > > The Agents API v1 is about to be deprecated. Build new agents with the [Agents SDK](/studio/agents). Agents can use tools to interact with the external world, these can be APIs, databases, or other services, increasing the capabilities of your agent and extending its functionality beyond its own knowledge base and fixed environment. ![tools_graph](/images/tools_graph.png) ### Tool types We provide a variety of different **types** of tools agents can use. |Type|Description| |---|---| |[Web Search](/studio/agents/agent-tools/websearch)| Built-in. Search the web for up-to-date information not in the agent's knowledge.| |[Code Interpreter](/studio/agents/agent-tools/code-interpreter)| Built-in. Run code and generate plots, useful for data analysis, visualization, or sandboxed execution.| |[Image Generation](/studio/agents/agent-tools/image-generation)| Built-in. Generate images based on a prompt or description.| |[Document Library](/studio/search/libraries#connecting-libraries-to-agents)| Built-in. Search through documents uploaded to your [Libraries](/studio/search/libraries), enabling RAG to answer questions based on specific information.| |[Function Calling](/studio/agents/agent-tools/function-calling)| Custom local tools: functions defined in your environment that can be called by the agent. Execution happens locally.| |[Connectors](/studio/connectors)| Register MCP servers as managed Connectors. Tools are discovered automatically and executed server-side.| ### Built-in tools ![built_in_graph](/images/built_in_graph.png) Built-in tools are ready out of the box. They can be called at any point, and all execution happens in our internal environment. They're also available for users to use directly via Conversations without creating an Agent first. #### General usage Built-in tool support depends on the API you use. > **Warning:** > > `web_search`, `web_search_premium`, and `code_interpreter` work with the [Conversations API](/studio/connectors/conversations) (`/v1/conversations`) and the Agents API. They aren't **supported** in the Chat Completions API (`/v1/chat/completions`). Built-in tools such as `image_generation` are also supported in the Chat Completions API. To use them, specify the tool in the `tools` parameter when creating an Agent or calling the Conversations API. > **Tip:** > > You can use multiple tools at the same time! **python** **agent creation** ```python agent = client.beta.agents.create( model="", name="", description="", instructions="", tools=[] ) ``` **direct conversation** ```python response = client.beta.conversations.start( model="", inputs=[], tools=[], # store=False ) ``` **typescript** **agent creation** ```typescript agent = client.beta.agents.create({ model:"", name:"", description:"", instructions:"", tools:[] }); ``` **direct conversation** ```typescript response = client.beta.conversations.start({ model:"", inputs:[], tools:[], // store:False }); ``` **curl** **agent creation** ```bash curl --location "https://api.mistral.ai/v1/agents" \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header "Authorization: Bearer $MISTRAL_API_KEY" \ --data '{ "model": "", "name": "", "description": "", "instructions": "", "tools": [] }' ``` **direct conversation** ```bash curl --location "https://api.mistral.ai/v1/conversations" \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header "Authorization: Bearer $MISTRAL_API_KEY" \ --data '{ "model": "", "inputs": [], "tools": [] }' ``` ## Sub-pages Full content of this page and its sub-pages: /llms/studio/agents/agent-tools/llms-full.txt - [Code Interpreter](/llms/studio/agents/agent-tools/code-interpreter/llms.txt): Create an agent that runs code in an isolated container for data analysis, graphs, and math, and read the output of each execution. - [Function Calling](/llms/studio/agents/agent-tools/function-calling/llms.txt): Define a function with a JSON schema, give it to an agent, and return the function result to the conversation. - [Image Generation](/llms/studio/agents/agent-tools/image-generation/llms.txt): Create an agent with the built-in image generation tool, generate images in conversations, and download them from their file IDs. - [Websearch](/llms/studio/agents/agent-tools/websearch/llms.txt): Create an agent that searches the web for recent information, read its output, and restrict searches with domain filtering.