AgentPMT
Public Commons Media Search

Public Commons Media Search

Function

Available ActionsEach successful request consumes credits as outlined below.

search_titles5crlist_page_media5crget_file5crsearch_commons_media5cr

Details

Let AI agents search Wikipedia and Wikimedia Commons to discover and download free images, audio, video, and other public media assets. The tool provides simple actions for page title search, listing media on a page, fetching file URLs (thumbnail, preferred, original), and direct Commons media search with pagination, enabling agentic content sourcing and research workflows with clear file description and licensing context.

Use Cases

Agentic media discovery, Search Wikimedia Commons files by keyword, Find free images for articles, Retrieve media download URLs, Check file description and license pages, Collect public media assets for presentations, Build datasets of public images, Source audio or video clips for projects

Actions(4)

search_titles5cr4 params(1 required)

Search Wikipedia for article titles matching a query. Returns matching pages with title, description, and excerpt.

Search Wikipedia for article titles matching a query. Returns matching pages with title, description, and excerpt.

qrequiredstring

Search query string.

projectstring

Wikimedia project (e.g., 'wikipedia'). Must not be 'commons' for this action.

Default: wikipedia
languagestring

Language code (e.g., 'en', 'fr', 'de').

Default: en
limitinteger

Maximum number of results to return.

Default: 50
Range: 1 - 50
list_page_media5cr3 params(1 required)

List all media files (images, audio, video) embedded on a specific Wikipedia page.

List all media files (images, audio, video) embedded on a specific Wikipedia page.

titlerequiredstring

Canonical page title (e.g., 'Solar_eclipse', 'Golden_Gate_Bridge').

projectstring

Wikimedia project (e.g., 'wikipedia'). Must not be 'commons' for this action.

Default: wikipedia
languagestring

Language code (e.g., 'en', 'fr', 'de').

Default: en
get_file5cr3 params(1 required)

Retrieve detailed file metadata and URLs (original, preferred, thumbnail) for a specific media file.

Retrieve detailed file metadata and URLs (original, preferred, thumbnail) for a specific media file.

file_titlerequiredstring

Full file title including the 'File:' prefix (e.g., 'File:Example.jpg').

projectstring

Wikimedia project. Set to 'commons' when the file is hosted on Wikimedia Commons.

Default: wikipedia
languagestring

Language code (e.g., 'en'). Required when project is not 'commons'.

Default: en
search_commons_media5cr3 params(1 required)

Search Wikimedia Commons directly for media files (images, audio, video, SVGs). Supports pagination for browsing large result sets.

Search Wikimedia Commons directly for media files (images, audio, video, SVGs). Supports pagination for browsing large result sets.

qrequiredstring

Search query string.

limitinteger

Maximum number of results to return.

Default: 50
Range: 1 - 50
offsetinteger

Pagination offset. Use the next_offset value from a previous response to get the next page.

Default: 0
Range: 0 - ...

Frequently Asked Questions

How do I connect this tool to an external agent?

Install commands

npm install -g @agentpmt/mcp-router
agentpmt-setup

Hosted MCP config

{
  "mcpServers": {
    "agentpmt": {
      "type": "streamable-http",
      "url": "https://api.agentpmt.com/mcp",
      "headers": {
        "Authorization": "Bearer <AGENTPMT_BEARER_TOKEN>",
        "x-instance-metadata": "{\"client\":\"generic-mcp\",\"platform\":\"remote\"}"
      }
    }
  }
}

How does an external agent use this tool?

Agent prompt

Call the AgentPMT-Tool-Search-and-Execution tool with action 'get_schema' and tool_id 696ef640fb2f7d26fd1ef7ab ("Public Commons Media Search"). Then call the same tool with action 'call_tool', tool_id 696ef640fb2f7d26fd1ef7ab, and the parameters needed for my request.

Looking for help integrating AI into your business? Set up a free consultation.

Public Commons Media Search by Apoth3osis | AgentPMT