media_upload
Uploads a local file from the configured upload directory to LibreDesk media storage, optionally as inline media or linked to a model such as messages.
Instructions
Media Upload POST /api/v1/media Tags: Media
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": {
"files": "<files>"
},
"name": "media_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | Yes | (body, file) File to upload. Only the first file is used. Size and extension limits come from the upload settings. — pass a file path inside the directory set by LIBREDESK_MCP_UPLOAD_DIR (uploads are refused while it is unset); the server will upload its contents. | |
| inline | No | (body) Set to 'true' to store the file with an inline disposition (e.g. an inline image) instead of as an attachment. | |
| linked_model | No | (body) Name of the model the uploaded media is linked to, e.g. `messages`. `help_articles` stores the file as publicly served media and requires the `help_center:manage` permission. |