Upload a local file
upload_fileFor a file on this machine with no public URL. Returns one signed upload URL per file (valid 2 hours) and the mediaId create_post takes. Upload each file yourself with: curl -fsS -X PUT -H "Content-Type: " --data-binary @ "" then pass the mediaIds to create_post. One call covers a carousel: count up to 10 images of one type, or a single video. create_post checks each file's real type and size (images up to 10MB, video up to 1GB, and each network's own lower limit) and refuses anything else. Uploading publishes nothing. If the file already has a public URL, use upload_media instead.
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": {
"contentType": "<contentType>"
},
"name": "upload_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | How many files of this type. Default 1. | |
| contentType | Yes | The files' type. Ask once per type if a carousel mixes jpeg and png. | |
| organizationId | No | Which organization to act in: an id from list_organizations. Leave out for this connection's default organization. |