Alphakdeps.io is experimental and evolving — the registry and packages may change or reset.
Toolkdeps asset

kdeps-tools-wikipedia

v2.0.0

Look up information on Wikipedia. Use for general knowledge questions about people, places, companies, historical events, concepts, or any topic needing an encyclopedic answer. Input is a search query.

set tools / shelf tools

LLM context: ~118 tokens when loaded (prompt or tool definition)

Where it runs

Part of the tools set, used in workflow and agent mode. What the model is told about each built-in tool: its description, usage notes and parameters. kdeps runs the tool itself.

  1. the agent loop builds the request
  2. the tool definitions are sent to the modeltools/wikipedia
  3. the model calls a tool
  4. kdeps runs it
  5. the result goes back to the model

Loaded by: kdeps (agent loop), /update, /settings, kdeps run, kdeps install, kdeps list, kdeps uninstall, kdeps update

In the code: kdeps (agent loop)agent.RegisterBuiltinToolsagent.definedAs

Install

A kdeps asset: installed with the first-run profile that includes its set, or the first time a command needs it, and updated without a new release.

kdeps install tools/wikipedia

Pin a version with kdeps install tools/wikipedia@<version>.

Contents

Look up information on Wikipedia. Use for general knowledge questions about people, places, companies, historical events, concepts, or any topic needing an encyclopedic answer. Input is a search query.

category
web
constraints
good for general knowledge; not for real-time/current information
outputFormat
the title and introduction of the two best-matching articles
seeAlso
web_search, web_scraper
ParameterTypeDescription
query *stringThe topic or question to look up on Wikipedia

Python script (declared in YAML, no Go code)

import json, os, sys, urllib.error, urllib.parse, urllib.request

query = json.loads(sys.argv[1])["query"]
base = os.environ.get("WIKI_URL") or "https://en.wikipedia.org/w/api.php"
# One request: the two best matches (generator=search) with the
# plain-text introduction of each (prop=extracts; several need exintro).
params = {
    "action": "query", "format": "json", "formatversion": "2",
    "generator": "search", "gsrsearch": query, "gsrlimit": "2",
    "prop": "extracts", "exintro": "1", "explaintext": "1", "exlimit": "2",
}
req = urllib.request.Request(base + "?" + urllib.parse.urlencode(params),
                             headers={"User-Agent": "kdeps/agent"})
try:
    with urllib.request.urlopen(req, timeout=25) as resp:
        data = json.load(resp)
except urllib.error.HTTPError as e:
    sys.exit("wikipedia: responded with %d" % e.code)
except (urllib.error.URLError, ValueError) as e:
    sys.exit("wikipedia: %s" % getattr(e, "reason", e))
pages = sorted((data.get("query") or {}).get("pages") or [], key=lambda p: p.get("index", 0))
if not pages:
    print("no wikipedia pages found")
for p in pages:
    print("%s\n%s\n" % (p.get("title", ""), (p.get("extract") or "").strip()))

Timeout: 30s

Offered when set: KDEPS_WIKIPEDIA_URL |

Versions

VersionPublishedStatus
2.0.010/24/2026active
1.0.010/11/2026active

Details

Author
kdeps
License
Apache-2.0
Latest Version
2.0.0
Published
10/11/2026

Tags

kdepstool