get_contract_import
Progress and result of an import_contract_from_folder run (Ticket 8138bb37). Required: operation_id (from import_contract_from_folder). Returns state: 'running' with per-file progress (phase per file: wartet/hochgeladen/ocr/gelesen/fertig); 'complete' with the created/updated contract_id and art ('neu' or 'aktualisiert') plus the full extraction result; or 'failed' with the overall reason (fehler) and the per-file phase/reason. Poll every few seconds until state is no longer 'running'.
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": {
"operation_id": "<operation_id>"
},
"name": "get_contract_import"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| operation_id | Yes | ID of the operation |