Wordpress Upload Media
wordpress_upload_mediaUpload a local media file to WordPress by providing its absolute file path, avoiding large base64 payloads over MCP.
Instructions
Upload a media file to WordPress from a local file path.
The file is read directly from disk, avoiding large base64 payloads over the MCP protocol. Provide an absolute path to the file.
CONTAINER NOTE: When running as a container, the file path refers to the container filesystem, not the host. Files must be placed in ~/.local/share/mcp-wordpress/uploads/ on the host (mounted to /tmp/mcp-uploads/ inside the container) to be accessible.
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_path": "<file_path>"
},
"name": "wordpress_upload_media"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | Media title | |
| caption | No | Media caption | |
| alt_text | No | Alt text for accessibility | |
| file_path | Yes | Absolute path to the file (e.g., /tmp/mcp-uploads/image.png) | |
| description | No | Media description |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||