Provenance
Freshness & coverage
Methods (5)
parse_document
unknownParse document text from a URL, share link, drive item, or content.
Input schema
{ "type": "object", "properties": { "url": { "type": "string" }, "shareUrl": { "type": "string" }, "driveId": { "type": "string" }, "itemId": { "type": "string" }, "contentBase64": { "type": "string" }, "fileName": { "type": "string" }, "maxFileSizeMB": { "type": "number" }, "maxParsedTextChars": { "type": "number" } }, "additionalProperties": false }ingest_onedrive_folder
unknownBulk document ingestion: parse and normalize every file in a OneDrive folder into clean text.
EntitiesdocumentInput schema
{ "type": "object", "properties": { "driveId": { "type": "string" }, "folderId": { "type": "string", "description": "Optional OneDrive folder ID." }, "query": { "type": "string", "description": "Optional search query." }, "limit": { "type": "number" }, "top": { "type": "number" }, "select": { "type": "string" }, "fetchAll": { "type": "boolean" }, "maxPages": { "type": "number" }, "fileTypes": { "type": "array", "items": { "type": "string" }, "description": "Allowed file extensions such as pdf, docx, or xlsx." }, "maxFileSizeMB": { "type": "number" }, "maxParsedTextChars": { "type": "number" }, "skipUnchanged": { "type": "boolean", "description": "Skip unchanged files." }, "existingDocuments": { "type": "array", "items": { "type": "object", "properties": { "source": { "oneOf": [ { "type": "string", "enum": [ "onedrive" ] }, { "type": "string", "enum": [ "sharepoint" ] } ] }, "siteId": { "type": "string" }, "driveId": { "type": "string" }, "itemId": { "type": "string" }, "etag": { "type": "string" }, "lastModified": { "type": "string" } }, "required": [ "itemId" ], "additionalProperties": false } }, "folderPath": { "type": "string", "description": "Optional OneDrive folder path." } }, "additionalProperties": true }extract_structured_data
unknownExtract structured fields from normalized documents.
Required paramsschemaTypedocumentsInput schema
{ "type": "object", "properties": { "schemaType": { "oneOf": [ { "type": "string", "enum": [ "invoice" ] }, { "type": "string", "enum": [ "lease" ] }, { "type": "string", "enum": [ "report" ] } ], "type": "string", "description": "Extraction schema such as invoice, lease, or report." }, "schema": { "oneOf": [ { "type": "string", "enum": [ "invoice" ] }, { "type": "string", "enum": [ "lease" ] }, { "type": "string", "enum": [ "report" ] } ] }, "text": { "type": "string" }, "itemId": { "type": "string" }, "document": { "type": "object", "properties": { "source": { "oneOf": [ { "type": "string", "enum": [ "onedrive" ] }, { "type": "string", "enum": [ "sharepoint" ] } ] }, "siteId": { "type": "string" }, "driveId": { "type": "string" }, "itemId": { "type": "string" }, "fileName": { "type": "string" }, "path": { "type": "string" }, "etag": { "type": "string" }, "lastModified": { "type": "string" }, "contentType": { "type": "string" }, "sizeBytes": { "type": "number" }, "parsed": { "type": "object", "properties": { "text": { "type": "string" }, "fileType": { "type": "string" }, "pageCount": { "type": "number" }, "sheetCount": { "type": "number" }, "wordCount": { "type": "number" }, "ocrRequired": { "type": "boolean" }, "truncated": { "type": "boolean" } }, "required": [ "text", "fileType" ], "additionalProperties": false } }, "required": [ "source", "itemId", "fileName", "parsed" ], "additionalProperties": false }, "documents": { "type": "array", "items": { "type": "object" }, "description": "Normalized documents to extract from." } }, "additionalProperties": true, "required": [ "schemaType", "documents" ] }upsert_document_record
writeMerge normalized documents and extracted data into deterministic records.
Required paramsrecordsInput schema
{ "type": "object", "properties": { "record": { "type": "object", "properties": { "document": { "type": "object", "properties": { "source": { "oneOf": [ { "type": "string", "enum": [ "onedrive" ] }, { "type": "string", "enum": [ "sharepoint" ] } ] }, "siteId": { "type": "string" }, "driveId": { "type": "string" }, "itemId": { "type": "string" }, "fileName": { "type": "string" }, "path": { "type": "string" }, "etag": { "type": "string" }, "lastModified": { "type": "string" }, "contentType": { "type": "string" }, "sizeBytes": { "type": "number" }, "parsed": { "type": "object", "properties": { "text": { "type": "string" }, "fileType": { "type": "string" }, "pageCount": { "type": "number" }, "sheetCount": { "type": "number" }, "wordCount": { "type": "number" }, "ocrRequired": {}, "truncated": {} }, "required": [ "text", "fileType" ], "additionalProperties": false } }, "required": [ "source", "itemId", "fileName", "parsed" ], "additionalProperties": false }, "extracted": { "oneOf": [ { "type": "object", "properties": { "documentType": { "type": "string", "enum": [ "invoice" ] }, "invoiceNumber": {}, "invoiceDate": {}, "dueDate": {}, "vendorName": {}, "customerName": {}, "totalAmount": {}, "currency": {}, "purchaseOrderNumber": {} }, "required": [ "documentType", "invoiceNumber", "invoiceDate", "dueDate", "vendorName", "customerName", "totalAmount", "currency", "purchaseOrderNumber" ], "additionalProperties": false }, { "type": "object", "properties": { "documentType": { "type": "string", "enum": [ "lease" ] }, "lessor": {}, "lessee": {}, "effectiveDate": {}, "expirationDate": {}, "monthlyRent": {}, "securityDeposit": {}, "propertyAddress": {}, "governingState": {} }, "required": [ "documentType", "lessor", "lessee", "effectiveDate", "expirationDate", "monthlyRent", "securityDeposit", "propertyAddress", "governingState" ], "additionalProperties": false }, { "type": "object", "properties": { "documentType": { "type": "string", "enum": [ "report" ] }, "title": {}, "reportDate": {}, "author": {}, "organization": {}, "summary": {} }, "required": [ "documentType", "title", "reportDate", "author", "organization", "summary" ], "additionalProperties": false } ] } }, "required": [ "document" ], "additionalProperties": false }, "records": { "type": "array", "items": { "type": "object" }, "description": "Document/extraction record pairs." }, "existingRecords": { "type": "array", "items": { "type": "object" }, "description": "Existing stored records for incremental merging." } }, "additionalProperties": true, "required": [ "records" ] }
