Search Wikimedia Commons Files
search_filesSearch Wikimedia Commons media files by keywords, file type, category, or structured data statements, returning URLs, dimensions, MIME types, and license attribution.
Instructions
Search media files on Wikimedia Commons using keywords, file type filters, category filters, or Structured Data statements (e.g. P180=Q146). Returns URLs, dimensions, MIME types, and license attribution.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "search_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sort | No | Result sort order (default: relevance) | |
| limit | No | Results per page (1-50, default 10) | |
| query | No | Search keywords or CirrusSearch terms | |
| offset | No | Pagination offset (default 0) | |
| category | No | Restrict search to a Commons category (with or without Category: prefix) | |
| fileType | No | Filter by Commons media type | |
| thumbWidth | No | Thumbnail width in pixels (64-1280, default 320) | |
| hasStatement | No | Filter by Wikibase statement, e.g. "P180=Q146" (depicts house cat) |