wordpress_upload_media
Upload a local media file to WordPress using an absolute file path. The tool reads directly from disk to avoid large base64 payloads and accepts optional title, alt text, caption, and description.
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.
Args: file_path: Absolute path to the file (e.g., /tmp/mcp-uploads/image.png) title: Media title alt_text: Alt text for accessibility caption: Media caption description: Media description
Returns: Uploaded media item details
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | ||
| caption | No | ||
| alt_text | No | ||
| file_path | Yes | ||
| description | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||