wafeq_upload_file_raw
Upload raw binary file content to Wafeq in advanced mode by sending bytes directly as the request body. Accepts base64 data or a local file path with filename to create a file record.
Instructions
๐ก WRITE ยท creates data ยท Files ยท POST /files/raw/
Create file (advance)
Create file in advance mode by sending raw binary file content directly in the request body. You must include a Content-Disposition header with the filename.
Not idempotent โ calling twice creates two records. Pass idempotency_key (or let the server generate one) to make a retry safe.
Advanced upload: sends the bytes as the raw request body with a Content-Disposition header. Prefer upload_file unless you specifically need raw mode. Provide file_base64 + filename, or file_path.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | Yes | Name to store the file under, e.g. "receipt-2026-03.pdf". Required. | |
| file_path | No | Absolute path to a file on the machine running this MCP server. Disabled unless WAFEQ_ALLOW_LOCAL_FILE_UPLOAD=true. | |
| file_base64 | No | File contents, base64-encoded. Provide either this or `file_path`. Prefer this for content you already hold. | |
| content_type | No | MIME type, e.g. "application/pdf". Guessed from the filename extension when omitted. |