Create image upload
create_image_uploadPrepare the upload of a local image file (the merchant gave a file path) for the app icon or launch screen. Use this ONLY when the merchant gives a local file path; if they give a link, prefer image_url on the update tool and skip this. Returns a curl command for the merchant to run on the computer that has the file. If the command fails, call create_image_upload again for a fresh link; if that fails too, ask for a public https image URL instead. Icon: PNG or JPEG, square (1024x1024 recommended), at most 5 MB, transparency allowed. Launch screen: PNG, JPEG or GIF, exactly 1062x2100 pixels, at most 5 MB. Twinr does not resize or crop images. If this project's Twinr section (replit.md on Replit, otherwise AGENTS.md) has no application_id, call list_apps, show the merchant every organization and its apps, and ask which app this project is. Never choose one yourself, and never infer it from the project's name or URL. Then record it in the project's Twinr section. Before calling this tool, tell the merchant which app you are changing by name, e.g. "Updating the icon for Shop Name…".
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": {
"app_id": "<app_id>",
"purpose": "<purpose>",
"file_path": "<file_path>"
},
"name": "create_image_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app_id | Yes | The application_id recorded in this project's Twinr section. | |
| purpose | Yes | ||
| file_path | Yes | The image's path on the merchant's computer. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | ||
| upload_id | Yes | ||
| expires_at | Yes | ||
| instructions | Yes |