Wikipedia
Search, page summaries, plain-text content (capped), media lists, nearby pages and language links
Stable v0.1.0 Node.js Wasm 7 actions
About
A Graphrt plugin for Wikipedia in any language, through the MediaWiki Action API and the REST v1 API. It searches articles, returns summaries, plain-text content, media lists, articles near a coordinate and the same article in other languages. No account or API key is needed. Every operation is a workflow node and an agent tool.
What it can do
- search_pages: full-text search (intitle:, incategory:, quoted phrases), paginated with limit/cursor
- get_page_summary: title, short description, plain-text lead (extract), thumbnail, coordinates, URLs
- get_page_content: the whole article (or only the lead with intro_only) as plain text, capped at max_chars (default 20,000) with truncated and total_chars
- get_page_media: images, audio and video on a page with captions and thumbnail URLs
- search_nearby_pages: articles near "lat|lon" within radius_meters (up to 10 km), nearest first
- get_page_languages: links to the same article in other Wikipedias (up to limit, default 500, MediaWiki's llcontinue comes back as next_cursor for the rest)
- api_request: any other Action or REST endpoint on the wiki, e.g. /w/api.php?action=query&prop=categories&titles=Borobudur&format=json (GET only for agents)
Actions
Each action is a step you can add to a workflow. Agents can also use most of them as tools.
- Search Wikipedia
wikipedia.search_pages - Page summary
wikipedia.get_page_summary - Page content (plain text)
wikipedia.get_page_content - Page media list
wikipedia.get_page_media - Pages near a place
wikipedia.search_nearby_pages - Page in other languages
wikipedia.get_page_languages - Wikipedia (MediaWiki Action and REST v1 APIs) request
wikipedia.api_request
Settings
Graphrt starts plugins with a clean environment. Only these values reach the plugin, and secrets stay out of logs.
-
WIKIPEDIA_LANGUAGEOptionalDefault wiki for calls without language, e.g. id (default en)
How to use it
In Graphrt Desktop
- Open Plugins and search for Wikipedia.
- Click Install and approve it.
- Follow the setup steps on the plugin's page, then paste the settings it needs.
- Describe a job that needs it, and the builder adds the steps.
With the CLI
terminal
$ graphrt plugin install wikipedia workflow.yaml
- id: article type: wikipedia.get_page_content page_title: Candi Borobudur language: id max_chars: 8000