Classify a document
classify_documentDetect the document type (receipt, invoice, contract, lease, …) without extracting fields. Cheap first step when you don't know which schema to use.
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": {
"file_base64": "<file_base64>"
},
"name": "classify_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_name | No | Original file name, e.g. 'invoice.pdf' (helps type detection). | |
| mime_type | No | MIME type if known, e.g. 'application/pdf', 'image/jpeg'. Inferred from file_name otherwise. | |
| file_base64 | Yes | The document bytes, base64-encoded. PDF, image (PNG/JPG/WEBP) or text file. |