wordpress_upload_media
[WRITE] Upload an image, video, PDF or other file to the WordPress media library from a public URL (for example an image you just generated). Returns the media id and its URL. Requires confirm:true.
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": "wordpress_upload_media"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Public http(s) link to the file (max 25 MB) | |
| title | No | Optional media title | |
| caption | No | Optional caption | |
| confirm | No | Must be true. Confirm the change with the user first; this acts on their live site. | |
| post_id | No | Optional post id to attach the file to | |
| alt_text | No | Alt text for images (recommended) | |
| filename | No | Optional file name, e.g. hero.jpg |