WordPress: Upload media from base64
wordpress_upload_media_from_base64Upload a base64-encoded file directly to the WordPress media library, making it useful for adding chat-attached images or files under about 10 MB.
Instructions
[UNIFIED] Upload a base64-encoded file directly to the WordPress media library. For chat-attached images/files smaller than ~10 MB. Use upload_media_from_url for larger files or chunked path later.
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>",
"data": "<data>",
"filename": "<filename>"
},
"name": "wordpress_upload_media_from_base64"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | ||
| mime | No | ||
| site | Yes | ||
| title | No | ||
| caption | No | ||
| alt_text | No | ||
| filename | Yes | ||
| convert_to | No | ||
| set_featured | No | ||
| skip_optimize | No | ||
| attach_to_post | No |