retell_add_knowledge_base_sources
Add documentation sources like URLs or text content to enhance a knowledge base for AI agents.
Instructions
Add documentation sources (URLs or text) to a knowledge base.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"knowledge_base_id": "<knowledge_base_id>",
"sources": "<sources>"
},
"name": "retell_add_knowledge_base_sources"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| knowledge_base_id | Yes | The knowledge base ID | |
| sources | Yes | Array of source configurations |
Implementation Reference
- src/index.ts:1237-1240 (handler)Handler implementation that extracts knowledge_base_id and sources from input args and sends a POST request to the Retell API to add sources to the knowledge base.
case "retell_add_knowledge_base_sources": { const { knowledge_base_id, sources } = args; return retellRequest(`/add-knowledge-base-sources/${knowledge_base_id}`, "POST", { sources }); } - src/index.ts:944-983 (schema)Tool schema definition including name, description, and detailed inputSchema for validating knowledge_base_id and sources array.
{ name: "retell_add_knowledge_base_sources", description: "Add documentation sources (URLs or text) to a knowledge base.", inputSchema: { type: "object", properties: { knowledge_base_id: { type: "string", description: "The knowledge base ID" }, sources: { type: "array", description: "Array of source configurations", items: { type: "object", properties: { type: { type: "string", enum: ["url", "text", "document"], description: "Source type" }, url: { type: "string", description: "URL for url type sources" }, content: { type: "string", description: "Text content for text type sources" }, title: { type: "string", description: "Title for the source" } } } } }, required: ["knowledge_base_id", "sources"] } },