scan_document
Scans document text, source, and type to validate and prepare content for retrieval-augmented generation (RAG) ingestion.
Instructions
Pre-ingestion scanning for RAG documents
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": {
"content": "<content>"
},
"name": "scan_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | No | Document source | |
| content | Yes | Document text to scan | |
| document_type | No | Document type (pdf, html, txt) |