add_document
Add documents to the central knowledge base for semantic search and retrieval. Provide file path, collection, author, and tags to index content.
Instructions
Add a document to the knowledge base.
Args:
file_path: Absolute path to the document file.
collection: Target collection name.
author: Optional document author.
tags: Comma-separated tags.
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": {
"file_path": "<file_path>"
},
"name": "add_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | No | ||
| author | No | ||
| file_path | Yes | ||
| collection | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |