SKILL.md
Mistral AI Automation
Automate your Mistral AI workflows -- upload files for fine-tuning, batch processing, and OCR, manage document libraries for RAG-enabled agents, list and retrieve files, track fine-tuning jobs, and integrate Mistral AI into cross-app data pipelines.
Toolkit docs: composio.dev/toolkits/mistral_ai
Setup
- Add the Composio MCP server to your client:
https://rube.app/mcp - Connect your Mistral AI account when prompted (API key authentication)
- Start using the workflows below
Core Workflows
1. Upload Files to Mistral AI
Use MISTRAL_AI_UPLOAD_FILE to upload files for fine-tuning, batch processing, or OCR.
Tool: MISTRAL_AI_UPLOAD_FILE
Inputs:
- file: object (required)
- name: string -- destination filename (e.g., "training_data.jsonl")
- mimetype: string -- MIME type (e.g., "application/pdf", "application/jsonl")
- s3key: string -- S3 key of a previously downloaded/stored file
- purpose: "fine-tune" | "batch" | "ocr" (default "fine-tune")
Limits: Maximum file size is 512 MB. For fine-tuning, only .jsonl files are supported.
2. List and Retrieve Files
Use MISTRAL_AI_LIST_FILES to browse uploaded files with pagination, and MISTRAL_AI_RETRIEVE_FILE to get metadata for a specific file.
Tool: MISTRAL_AI_LIST_FILES
Inputs:
- limit: integer (optional, min 1)
- after: string (file ID cursor for next page)
- order: "asc" | "desc" (default "desc")
Tool: MISTRAL_AI_RETRIEVE_FILE
Inputs:
- file_id: string (required) -- UUID obtained from List Files
3. Create Document Libraries
Use MISTRAL_AI_CREATE_LIBRARY to group documents into libraries for use with RAG-enabled Mistral AI agents.
