[urgent] tool
# support
c
Hello i got a problem i can t find knowledge tool in api create tool
c
Hi, When creating a query tool (also known as a knowledge base tool), you need to use the specific type "query" in your API call. Here's how to create it [1](https://docs.vapi.ai/knowledge-base/using-query-tool):
Copy code
curl --location 'https://api.vapi.ai/tool/' \--header 'Content-Type: application/json' \--header 'Authorization: Bearer <YOUR_API_KEY>' \--data '{    "type": "query",    "function": {        "name": "product-query"    },    "knowledgeBases": [        {            "provider": "google",            "name": "product-kb",            "description": "Use this knowledge base when the user asks or queries about the product or services",            "fileIds": [                "YOUR_FILE_ID_1",                "YOUR_FILE_ID_2"            ]        }    ]}'
Key points: 1. Use
"type": "query"
in your request 2. Include
knowledgeBases
array with your configuration 3. Make sure you've already uploaded your files and have their fileIds 4. Currently only supports Google as a provider with the gemini-1.5-flash model Remember to first upload your files using the file endpoint before creating the query tool.
3 Views