list_batch_jobs
Retrieve and filter batch OCR processing jobs from the Mistral AI document extraction server to monitor and manage document conversion operations.
Instructions
List batch jobs with optional filtering.
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": {
"arguments": "<arguments>"
},
"name": "list_batch_jobs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| arguments | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |
Implementation Reference
- src/mcp_mistral_ocr_opt/main.py:602-615 (handler)The `list_batch_jobs` tool handler, which uses the batch processor to fetch jobs and returns them as a JSON-formatted list.
@app.tool("list_batch_jobs") async def list_batch_jobs(arguments: Dict[str, Any]) -> List[TextContent]: """List batch jobs with optional filtering.""" try: batch_proc = await get_batch_processor() jobs = await batch_proc.list_jobs( status=arguments.get("status"), ) return [ TextContent( type="text", text=json.dumps({"jobs": jobs}, indent=2, ensure_ascii=False), )