Add text or a web page to a knowledge base
add_knowledge_sourceAdd a block of text (kind text) or a web page (kind website) to a knowledge base; Fetch Hive indexes it in the background. Indexing uses credit, so call it first without approved to see what happens, and again with approved: true only after the person agrees. Files are added on the dashboard. Then check get_knowledge_base until the source is ready.
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>",
"kind": "<kind>"
},
"name": "add_knowledge_source"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | kind website: the page to index. | |
| kind | Yes | ||
| name | No | Default: the start of the text or the URL. | |
| text | No | kind text: the content to index (up to 200,000 characters). | |
| approved | No | true only after the person has agreed to the cost. | |
| knowledge_base_id | Yes |