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.
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 |