

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_titles5cr4 params(1 required)Search Wikipedia for article titles matching a query. Returns matching pages with title, description, and excerpt.
qrequiredstringSearch query string.
projectstringWikimedia project (e.g., 'wikipedia'). Must not be 'commons' for this action.
Default:
wikipedialanguagestringLanguage code (e.g., 'en', 'fr', 'de').
Default:
enlimitintegerMaximum number of results to return.
Default:
50Range: 1 - 50
list_page_media5cr3 params(1 required)List all media files (images, audio, video) embedded on a specific Wikipedia page.
list_page_media5cr3 params(1 required)List all media files (images, audio, video) embedded on a specific Wikipedia page.
titlerequiredstringCanonical page title (e.g., 'Solar_eclipse', 'Golden_Gate_Bridge').
projectstringWikimedia project (e.g., 'wikipedia'). Must not be 'commons' for this action.
Default:
wikipedialanguagestringLanguage code (e.g., 'en', 'fr', 'de').
Default:
enget_file5cr3 params(1 required)Retrieve detailed file metadata and URLs (original, preferred, thumbnail) for a specific media file.
get_file5cr3 params(1 required)Retrieve detailed file metadata and URLs (original, preferred, thumbnail) for a specific media file.
file_titlerequiredstringFull file title including the 'File:' prefix (e.g., 'File:Example.jpg').
projectstringWikimedia project. Set to 'commons' when the file is hosted on Wikimedia Commons.
Default:
wikipedialanguagestringLanguage code (e.g., 'en'). Required when project is not 'commons'.
Default:
ensearch_commons_media5cr3 params(1 required)Search Wikimedia Commons directly for media files (images, audio, video, SVGs). Supports pagination for browsing large result sets.
search_commons_media5cr3 params(1 required)Search Wikimedia Commons directly for media files (images, audio, video, SVGs). Supports pagination for browsing large result sets.
qrequiredstringSearch query string.
limitintegerMaximum number of results to return.
Default:
50Range: 1 - 50
offsetintegerPagination offset. Use the next_offset value from a previous response to get the next page.
Default:
0Range: 0 - ...
Frequently Asked Questions
How do I connect this tool to an external agent?
You can install the local MCP server by opening a terminal and running:
Install commands
npm install -g @agentpmt/mcp-router
agentpmt-setupThis will connect you to local agents like Claude Code, Windsurf, Grok Build, Cursor, etc.
Alternatively you can connect to the hosted version with this config block, no installation required:
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\"}"
}
}
}
}View MCP Connection Instructions for more details.
How does an external agent use this tool?
After the external agent is connected to an Agent Group that can use this tool, paste this prompt into the agent:
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.
The agent should fetch the tool schema first, collect the required parameters for your request, and then call the tool through AgentPMT.





