Classify a document
classifyAssigns an uploaded document to the account's classes and waits for the result, with options for candidate classes, multiple labels, custom instructions, and an unknown fallback.
Instructions
Classify one uploaded document into the account's classes and wait for the answer. Credits: 0.1/page, rounded up per document (at least 1).
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": "classify"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| class_ids | No | Candidate classes (list_classes). Omit to use all classes. | |
| document_id | Yes | ||
| multi_class | No | Allow more than one class per document. | |
| instructions | No | ||
| include_unknown | No | Allow 'unknown' when nothing fits (single-class mode). |