file_info
Pack: commons-wikimedia · Endpoint: https://gateway.pipeworx.io/commons-wikimedia/mcp
File metadata (size, mime, license, upload date, thumbnail urls).
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
title | string | yes | e.g. “File:Cat.jpg” |
Example call
curl -X POST https://gateway.pipeworx.io/commons-wikimedia/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"file_info","arguments":{}}}'
Response shape
| Field | Type | Description |
|---|---|---|
batchcomplete | boolean | Whether the query is complete |
query | object |
Full JSON Schema
{
"type": "object",
"properties": {
"batchcomplete": {
"type": "boolean",
"description": "Whether the query is complete"
},
"query": {
"type": "object",
"properties": {
"pages": {
"type": "array",
"items": {
"type": "object",
"properties": {
"pageid": {
"type": "number",
"description": "Page ID"
},
"ns": {
"type": "number",
"description": "Namespace ID"
},
"title": {
"type": "string",
"description": "File title"
},
"missing": {
"type": "boolean",
"description": "True if file not found"
},
"imageinfo": {
"type": "array",
"items": {
"type": "object",
"properties": {
"timestamp": {
"type": "string",
"description": "Upload or last edit timestamp"
},
"user": {
"type": "string",
"description": "Uploader username"
},
"userid": {
"type": "number",
"description": "Uploader user ID"
},
"size": {
"type": "number",
"description": "File size in bytes"
},
"width": {
"type": "number",
"description": "Image width in pixels"
},
"height": {
"type": "number",
"description": "Image height in pixels"
},
"url": {
"type": "string",
"description": "Full file URL"
},
"thumburl": {
"type": "string",
"description": "Thumbnail URL"
},
"thumbwidth": {
"type": "number",
"description": "Thumbnail width"
},
"thumbheight": {
"type": "number",
"description": "Thumbnail height"
},
"mime": {
"type": "string",
"description": "File MIME type"
},
"thumbmime": {
"type": "string",
"description": "Thumbnail MIME type"
},
"sha1": {
"type": "string",
"description": "SHA1 hash of file"
},
"metadata": {
"type": "array",
"description": "File metadata"
},
"extmetadata": {
"type": "object",
"description": "Extended metadata (license, author, etc)"
}
}
},
"description": "Image information array"
}
}
}
}
}
}
}
}
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"commons-wikimedia": {
"url": "https://gateway.pipeworx.io/commons-wikimedia/mcp"
}
}
}
See Getting Started for client-specific install steps.