Add knowledge
add_knowledgeTrain the AI agent by adding a knowledge source. type='url' crawls a website (up to 50 pages, fewer when the workspace knowledge-base quota is nearly full); type='qa' stores a single question/answer pair. Ingestion is asynchronous, the source starts as PENDING; poll list_knowledge for READY status.
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": {
"type": "<type>"
},
"name": "add_knowledge"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Website root URL to crawl. Required when type='url'. | |
| type | Yes | 'url' to crawl a website, or 'qa' to add a question/answer pair. | |
| answer | No | The answer. Required when type='qa'. | |
| question | No | The question. Required when type='qa'. |