Upload Media
aidelly_upload_mediaDefault image-attach path for MCP: upload media in one step, server-side, with no client-to-Supabase connection required. Preferred for all browser-based chat clients (ChatGPT, Claude.ai) and safe for any client. Provide exactly one of source_url (a public HTTPS URL the server fetches — best for anything non-trivial and not subject to a payload size cap), data_url, or file_base64 (small inline images only; large payloads hit the MCP tool-call size limit). Returns media_id and read_url for aidelly_create_post content.media.
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": {
"idempotency_key": "<idempotency_key>",
"file_name": "<file_name>"
},
"name": "aidelly_upload_media"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | Optional body override for endpoints with sparse parameter schemas. | |
| query | No | Optional query overrides for endpoints with sparse parameter schemas. | |
| folder | No | ||
| brand_id | No | ||
| data_url | No | Data URL such as data:image/png;base64,... | |
| file_name | Yes | ||
| source_url | No | Public HTTPS URL to fetch server-side. | |
| file_base64 | No | Base64-encoded file bytes. | |
| content_type | No | Required when using file_base64 or data_url. | |
| workspace_id | No | Workspace to operate in: the `id` of a workspace returned by aidelly_list_workspaces. Optional for read operations; required when creating content. | |
| idempotency_key | Yes |