Upload a white-label brand image
upload_platform_brand_fileStores one brand image on this swift_platform account and returns its file id and public URL. purpose is mark, mark_dark, icon, or favicon. Send exactly one of content_base64 or source_url. source_url is an https address this server can fetch. filename and content_type must match the bytes. Allowed types are svg, png, jpg, and webp. svg is at most 256 KB. png, jpg, and webp are at most 2 MB. An SVG is cleaned so it has no script and no external reference. Pass the returned file id to set_platform_app_settings. Omitted confirm checks the file and returns a preview. It does not store the file. True stores it. The same idempotency_key returns the first file instead of storing another. The file is stored on the connected account only. An account id in the arguments is ignored.
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": {
"purpose": "<purpose>",
"filename": "<filename>",
"content_type": "<content_type>"
},
"name": "upload_platform_brand_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | Omitted returns a preview on every client. True stores the file. | |
| purpose | Yes | Where this image is used. mark_dark is the mark on a dark background. | |
| filename | Yes | Name ending in .svg, .png, .jpg, .jpeg, or .webp. | |
| source_url | No | https URL of the file. Omit when content_base64 is set. | |
| content_type | Yes | image/svg+xml, image/png, image/jpeg, or image/webp. | |
| content_base64 | No | File bytes as base64. Omit when source_url is set. | |
| idempotency_key | No | Repeats the same stored file instead of storing another. |