upload-file-from-url
Fetches a file from a remote URL and uploads it to the wiki's File namespace, creating a new file entry. Handles uploads even when upload-by-URL is disabled, with fallback for server-side retrieval.
Instructions
Fetches a file from a remote web URL and uploads it into the wiki's File namespace, returning the resulting file title and URL. The upload appears in the wiki's upload log. Works whether or not the wiki has upload-by-URL enabled: the server retrieves the file and uploads it directly, falling back to wiki-side fetching only when it cannot reach the URL itself. Fails if a file with the target title already exists. To replace an existing file with a new revision, use update-file-from-url.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | URL of the file to upload | |
| title | Yes | File title (with or without the "File:" prefix) | |
| text | Yes | Wikitext on the file page | |
| comment | No | Reason for uploading the file | |
| wiki | No | Wiki to target, as a key from the mcp://wikis/ resources (e.g. en.wikipedia.org), or the full mcp://wikis/ URI. Omit to use the default wiki. |