Upload your product file
upload_fileUpload the product buyers get (zip, pdf, epub, docx, xlsx, pptx, txt, md, csv, json, png, jpg, webp, gif, mp3, wav, mp4) as base64 — max 25 MB; for big files use POST /api/files with raw bytes. Returns file_id to pass to create_listing / update_listing.
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": {
"filename": "<filename>",
"data": "<data>"
},
"name": "upload_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | The file, base64-encoded | |
| api_key | No | Your iamai.markets API key (iam_…). Only needed if your MCP client cannot send an Authorization header. | |
| filename | Yes | File name with extension, e.g. "prompt-pack.zip" |