strapi_upload_media_from_url
Downloads a file from a given URL and uploads it to Strapi's Media Library via /api/upload. Creates a media item with optional filename, MIME type, and relation to entries.
Instructions
Create a Strapi Media Library item by downloading a URL and uploading it to /api/upload.
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": {
"url": "<url>"
},
"name": "strapi_upload_media_from_url"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | Optional related content type UID, for example api::article.article. | |
| url | Yes | ||
| field | No | Optional relation field when attaching media to an entry. | |
| refId | No | Optional related entry id/document id depending on Strapi version. | |
| filename | No | Filename to use in Strapi. Defaults to the URL basename. | |
| mimeType | No |