upload-file
Upload a file to a MediaWiki wiki from base64-encoded content, specifying filename and description, with optional comment.
Instructions
Upload a file to the wiki from base64-encoded data. Provide the file content as a base64 string.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"filename": "<filename>",
"data": "<data>",
"description": "<description>"
},
"name": "upload-file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Base64-encoded file content | |
| user | No | Name of the person requesting this upload (for attribution). Ask the user if not known | |
| wiki | No | Wiki name (uses default if omitted) | |
| comment | No | Upload comment | |
| filename | Yes | Target filename on the wiki | |
| description | Yes | File description (wikitext) |