init_upload
Initialize a file upload to Postmypost. You can provide a URL for the server to fetch the file, or provide the file name and size for a direct upload.
Parameters
project_id(integer, required): Project ID.url(string, optional): File URL (for upload via URL).name(string, optional): File name (for direct upload).size(integer, optional): File size in bytes (for direct upload).
Requirement: Either url OR both name and size must be provided.
Example Request (via URL)
curl -X POST https://mcp.postmypost.io/v1/tools/call \
-H "Authorization: Bearer <your-api-token>" \
-H "Content-Type: application/json" \
-d '{
"name": "init_upload",
"arguments": {
"project_id": 123,
"url": "https://example.com/image.jpg"
}
}'