file_revisions

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

File revision history.

Parameters

NameTypeRequiredDescription
titlestringyes
limitnumberno

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_revisions","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"
              },
              "missing": {
                "type": "boolean",
                "description": "True if file not found"
              },
              "imageinfo": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "timestamp": {
                      "type": "string",
                      "description": "Revision timestamp"
                    },
                    "user": {
                      "type": "string",
                      "description": "Editor username"
                    },
                    "userid": {
                      "type": "number",
                      "description": "Editor user ID"
                    },
                    "comment": {
                      "type": "string",
                      "description": "Edit summary or comment"
                    },
                    "url": {
                      "type": "string",
                      "description": "File URL for this revision"
                    },
                    "size": {
                      "type": "number",
                      "description": "File size in bytes"
                    },
                    "sha1": {
                      "type": "string",
                      "description": "SHA1 hash of revision"
                    }
                  }
                },
                "description": "Array of image revisions"
              }
            }
          }
        }
      }
    }
  }
}

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