add_document
Index a PDF, DOCX, Markdown, HTML, TXT, or JSON file from an absolute path to make it searchable and retrievable, with optional tags and title for organization.
Instructions
Add a document to the index from a file path. Supports PDF, DOCX, Markdown, HTML, TXT, and JSON files.
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": {
"path": "<path>"
},
"name": "add_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path to the document file | |
| tags | No | Optional tags for categorization | |
| title | No | Optional custom title (defaults to filename) |