upload-file-from-url
Fetches a file from a remote URL and uploads it to the wiki's File namespace, returning the file title and URL. Works even if the wiki does not support upload-by-URL.
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 | |
| text | Yes | Wikitext on the file page | |
| 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. | |
| title | Yes | File title (with or without the "File:" prefix) | |
| comment | No | Reason for uploading the file |