Download Wikimedia Commons File
download_fileDownload a Wikimedia Commons original file or resized thumbnail into the configured sandbox directory, with path-traversal protection, size limits, and SHA-1 integrity checks for originals.
Instructions
Safely download an original Wikimedia Commons file or resized thumbnail into the configured sandbox download directory (COMMONS_DOWNLOAD_DIR). Enforces path traversal protection, size limits, and SHA-1 integrity verification for original files.
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": {
"title": "<title>"
},
"name": "download_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | Commons file title (with or without File: prefix) | |
| width | No | Optional thumbnail width in pixels; omit to download the original full-resolution file | |
| filename | No | Optional single-segment filename override (without directory separators) | |
| overwrite | No | Whether to overwrite an existing file at the resolved target path (default false) | |
| subdirectory | No | Optional relative subdirectory inside the configured download root |