WordPress: Upload media from url
wordpress_upload_media_from_urlAdd media to a WordPress library directly from a public URL. Downloads the file with SSRF protection, detects the MIME type, and uploads it, optionally setting metadata and attaching it to a post.
Instructions
[UNIFIED] Upload media from a public URL to the WordPress media library (sideload). Downloads the file with SSRF protection, sniffs MIME, and uploads via raw-binary POST.
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": {
"site": "<site>",
"url": "<url>"
},
"name": "wordpress_upload_media_from_url"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| site | Yes | ||
| title | No | ||
| caption | No | ||
| alt_text | No | ||
| filename | No | ||
| convert_to | No | ||
| set_featured | No | ||
| skip_optimize | No | ||
| attach_to_post | No |