Wordpress Upload Media
wordpress_upload_mediaUpload an image or file to a Cloud for WordPress site's media library from a public URL or base64 data, returning the attachment ID and URL for use as featured media or in page content.
Instructions
Add an image (or other file) to a Cloud for WordPress site's media library, from a public URL (WordPress downloads it) or from base64 data with a filename. Returns the attachment id (use as featured_media on a post or page via wordpress_request) and its url (use in page content). Set alt_text to describe the image for accessibility. Up to about 10 MB.
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": {
"domain": "<domain>"
},
"name": "wordpress_upload_media"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Public https:// address of the file. Use this or data. | |
| data | No | The file as base64 (a data: URL works). Use this or url. | |
| title | No | Media title. | |
| domain | Yes | The domain of the Cloud for WordPress site. | |
| caption | No | Caption. | |
| post_id | No | Attach it to this post or page id. | |
| alt_text | No | Alt text describing the image. | |
| filename | No | File name with extension, e.g. `storefront.jpg`. Required with data. |