upload-media
Upload images or files to WordPress from a local path or URL, with optional title, alt text, caption, and description fields.
Instructions
Upload media files to WordPress from local paths or URLs
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": {
"source": "<source>"
},
"name": "upload-media"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | Media title | |
| source | Yes | Local file path or URL to upload | |
| altText | No | Alt text for accessibility | |
| caption | No | Media caption | |
| description | No | Media description |