analyze_document
Re-run AI analysis on an already-uploaded document: extracts the text from the stored file, stores it (get_document_text reads it back), replaces its search sections (search_knowledge finds them, source = document_id + sheet/rows) and writes/refreshes the AI-summary section of description. Required: document_id. Only works on documents with an uploaded file (via upload_document), not url-only references. Text extraction supports PDF, Word .docx, Excel .xlsx (per sheet as Markdown table), PowerPoint/OpenDocument and txt/md/csv/json/html; use it to (re)process files uploaded before Office support existed. Returns { ok, description, summary, text_stored, text_chars, indexed_sections, vectorised_sections, index_error? }.
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": {
"document_id": "<document_id>"
},
"name": "analyze_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| document_id | Yes | ID of the document |