upload-file
Upload a file from your computer to a wiki's File namespace, adding it to the upload log. Requires a local absolute file path and a page title; fails if the file already exists.
Instructions
Uploads a file from the local disk into the wiki's File namespace and returns the resulting file title and URL. The upload appears in the wiki's upload log. The operator restricts which directories are readable; filepath must be an absolute path inside a configured upload directory, or the call fails before contacting the wiki. Fails if a file with the target title already exists (the wiki does not silently overwrite existing files). To upload directly from a remote web address instead of a local path, use upload-file-from-url. To replace an existing file with a new revision, use update-file.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| 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 | |
| filepath | Yes | File path on the local disk |