document.extract
Fetch a document from a URL, classify its type (personal/medical/business/unknown) with keyword + PII-pattern heuristics (documents containing actual PII data are NEVER business), and return extracted text capped at 100K chars. Free. STREAMING SUPPORTED: send Accept: text/event-stream for started/fetched/classifying/completed phases.
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_url": "<document_url>"
},
"name": "document.extract"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| document_url | Yes | Public HTTPS URL (fetched server-side, 30s timeout; text/* formats classify, binary answers unknown). |