kb_add
Add or update a document in a knowledge base by providing a unique source identifier, with options to replace existing entries and apply tags.
Instructions
向知识库添加或更新一篇文档。
Args: source: 文档唯一标识,例如 URL、文件路径或自定义 ID。 content: 文档正文。 title: 标题。 tags: 逗号分隔的标签,便于后续过滤。 replace: source 已存在时是否覆盖。
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": {
"source": "<source>",
"content": "<content>"
},
"name": "kb_add"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | No | ||
| title | No | ||
| source | Yes | ||
| content | Yes | ||
| replace | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |