random_image

Pack: commons-wikimedia · Endpoint: https://gateway.pipeworx.io/commons-wikimedia/mcp

Random image (optionally from a category).

Parameters

NameTypeRequiredDescription
categorystringno

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":"random_image","arguments":{}}}'

Response shape

FieldTypeDescription
batchcompletebooleanWhether the query is complete
queryobject
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"
              },
              "imageinfo": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "url": {
                      "type": "string",
                      "description": "File URL"
                    },
                    "size": {
                      "type": "number",
                      "description": "File size in bytes"
                    },
                    "width": {
                      "type": "number",
                      "description": "Image width in pixels"
                    },
                    "height": {
                      "type": "number",
                      "description": "Image height in pixels"
                    },
                    "mime": {
                      "type": "string",
                      "description": "File MIME type"
                    }
                  }
                },
                "description": "Image information"
              }
            }
          }
        },
        "categorymembers": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "pageid": {
                "type": "number",
                "description": "Member page ID"
              },
              "ns": {
                "type": "number",
                "description": "Member namespace ID"
              },
              "title": {
                "type": "string",
                "description": "Member title"
              },
              "type": {
                "type": "string",
                "enum": [
                  "page",
                  "file",
                  "subcat"
                ],
                "description": "Type of category member"
              }
            }
          },
          "description": "Category members (when category specified)"
        }
      }
    }
  }
}

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.

Regenerated from source · build May 21, 2026