Upload an image or video
upload_mediaUpload an image or video to an organization's file library and return the file ID needed by create_publication. Accepts local absolute paths or public HTTPS URLs.
Instructions
Put an image or video into an organization's file library and get back the id that create_publication consumes in files. Absolute path to a local file, or a public https URL. Local paths only work because this server runs on the user's own machine, and only inside the directories the server was allowed to read. Accepted formats: jpg, jpeg, png, gif, mp4, heic, heif.
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": {
"source": "<source>"
},
"name": "upload_media"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | Absolute path to a local file, or a public https URL. Local paths only work because this server runs on the user's own machine, and only inside the directories the server was allowed to read. | |
| filename | No | Name to store it under. Deduced from the source when omitted. | |
| id_organization | No | The PlanVortex organization id. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| upload | Yes | ||
| already_existed | Yes |