# Mistral AI

Mistral AI is a research lab building state-of-the-art open-source language models and providing APIs for developers and enterprises to integrate these models into their applications.

- **Category:** artificial intelligence
- **Auth:** API_KEY
- **Tools:** 10
- **Triggers:** 0
- **Slug:** `MISTRAL_AI`
- **Version:** 20260211_00

## Tools

### Create library

**Slug:** `MISTRAL_AI_CREATE_LIBRARY`

Tool to create a new document library. Use when you need to group documents into a new library. Use after confirming authentication.

### Delete library document

**Slug:** `MISTRAL_AI_DELETE_LIBRARY_DOCUMENT`

Permanently deletes a document from a Mistral AI library. Use this tool when you need to remove a specific document from a library. Both library_id and document_id must be valid UUIDs. This operation is irreversible - the document will be permanently removed. Returns an empty response on success (HTTP 204). Common errors: - 404: Document not found (already deleted or invalid document_id) - 422: Invalid UUID format for library_id or document_id

### Download File

**Slug:** `MISTRAL_AI_DOWNLOAD_FILE`

Download the content of a previously uploaded file from Mistral AI. Returns the raw binary content of the file. Use this when you need to retrieve file data for processing, such as training data files (.jsonl) for fine-tuning. Requires a valid file_id which can be obtained from the list_files or upload_file actions.

### List Fine Tuning Jobs

**Slug:** `MISTRAL_AI_GET_FINE_TUNING_JOBS`

List fine-tuning jobs with optional filtering and pagination. Use this tool to retrieve all fine-tuning jobs for your organization. Supports filtering by model, status, creation time, and W&B integration. Results are paginated; use 'page' and 'page_size' to navigate large result sets.

### List Files

**Slug:** `MISTRAL_AI_LIST_FILES`

Tool to list all files available to the user. Use when you need to view or manage uploaded files, supports pagination.

### List libraries

**Slug:** `MISTRAL_AI_LIST_LIBRARIES`

List all document libraries accessible to your organization. Returns library metadata including id, name, description, document counts, and timestamps. Use to discover available libraries before listing or uploading documents. Note: This is a beta endpoint.

### List Library Documents

**Slug:** `MISTRAL_AI_LIST_LIBRARY_DOCUMENTS`

List all documents in a Mistral AI document library. Returns document metadata including name, processing status, size, summary, and timestamps. Use the List Libraries action first to obtain valid library IDs. Supports pagination for large libraries.

### Retrieve File

**Slug:** `MISTRAL_AI_RETRIEVE_FILE`

Retrieve metadata of a file uploaded to Mistral AI. Returns file details including size, filename, purpose, and creation time. Use List Files action first to obtain valid file IDs.

### Upload File

**Slug:** `MISTRAL_AI_UPLOAD_FILE`

Upload a file to Mistral AI for use in fine-tuning, batch processing, or OCR. Use this tool to: - Upload .jsonl files for fine-tuning models - Upload files for batch processing requests - Upload documents for OCR processing Maximum file size: 512 MB. For fine-tuning, only .jsonl files are supported.

### Upload Library Document

**Slug:** `MISTRAL_AI_UPLOAD_LIBRARY_DOCUMENT`

Upload a document to a Mistral AI library for use with RAG-enabled agents. Use this action to add documents to a library that can be accessed by Mistral AI agents. The uploaded document will be processed and indexed for retrieval-augmented generation. Prerequisites: - First obtain a valid library_id using MISTRAL_AI_LIST_LIBRARIES or MISTRAL_AI_CREATE_LIBRARY. - Supported file formats include PDF, TXT, DOC, DOCX, and other common document types. - Maximum file size is 100 MB per document.
