kb_retry_document
Retry ingestion of a failed document in place while keeping its document_id, re-reading the file, re-embedding pasted text, or re-fetching the web page.
Instructions
Re-run ingestion of a failed document in place, keeping its document_id: an uploaded file is
read again, pasted text re-embedded, a web page re-fetched. Returns {document_id, status};
kb_get_status reports the outcome. A failure on Unilytics' side usually succeeds on a retry; a
file that failed because of its content (unreadable, too long) fails the same way again, since
the retry reads the same file (a fixed file is a new upload: kb_create_direct_upload +
kb_add_file). Only a failed document can be retried, at most 10 times: a refusal is error
'invalid_request' with its document_id, document_status and a reason of BUSY (still
processing), NOT_FAILED, RETRY_LIMIT or CONFLICT (changed during the retry).
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": {
"project_id": "<project_id>",
"document_id": "<document_id>"
},
"name": "kb_retry_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | Yes | ||
| document_id | Yes |