knowledge_add
Upload text to a specified knowledge base, wait for processing, and attach the result. If a write fails partially, inspect stage and file_id before retrying.
Instructions
Upload text, wait for processing, then attach to the given knowledge base.
A failed write may be partial: inspect stage and file_id before retrying.
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_id": "<knowledge_id>",
"text": "<text>"
},
"name": "knowledge_add"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| title | No | knowledge.txt | |
| source | No | ||
| metadata | No | ||
| knowledge_id | Yes |