mediawiki_upload_file
Upload files from URLs to MediaWiki wikis, enabling users to add images, documents, and other media with customizable descriptions and overwrite options.
Instructions
Upload a file to the wiki from a URL.
USE WHEN: User says "upload this image", "add file to wiki", "import document".
PARAMETERS:
filename: Target filename on wiki (required)
file_url: Source URL to fetch file from (required)
text: File description page content (optional)
comment: Upload comment (optional)
ignore_warnings: Overwrite existing file (default false)
RETURNS: Upload status and file page URL.
NOTE: Requires authentication. URL must be publicly accessible.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | Yes | Target filename on the wiki (e.g., 'Example.png') | |
| file_path | No | Local file path to upload | |
| file_url | No | URL to fetch and upload (alternative to file_path) | |
| text | No | File description page content (wikitext) | |
| comment | No | Upload comment for the log | |
| ignore_warnings | No | Ignore duplicate/overwrite warnings |