Upload an icon or screenshot
upload_mediaAdd or replace the icon (name icon, up to 256 KB) or a screenshot (shot-1 to shot-5, up to 1 MB) of an app you own. content is base64 PNG, JPEG or WebP and content_type must match. Call it after publish_app.
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": {
"slug": "<slug>",
"name": "<name>",
"content": "<content>",
"content_type": "<content_type>"
},
"name": "upload_media"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | icon or shot-1 … shot-5. | |
| slug | Yes | Slug of an app you own. | |
| api_key | No | Optional slop_ API key. Use this when the client cannot send Authorization: Bearer. | |
| content | Yes | Base64 image bytes. | |
| content_type | Yes |