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.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| arguments | 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), )