nucleo-media-upload
Upload a base64-encoded image to the WordPress media library with alt text, supporting JPEG, PNG, WebP, GIF and AVIF up to 10 MB; duplicate files return the existing media item.
Instructions
Uploads an image sent as base64 to the media library, with alt text. Accepts only jpeg, png, webp, gif and avif, up to 10 MB. An identical file already in the library is returned without uploading it again.
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": {
"file": "<file>",
"data": "<data>"
},
"name": "nucleo-media-upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| alt | No | Alternative text. Empty string for decorative images. | |
| data | Yes | Image content encoded in base64. | |
| file | Yes | File name with extension, for example photo.png. | |
| title | No | Media title. |