Ask a question about a wiki; returns a cited answer. mode=fast (router) or deep (harness).
file_answerboolean
File a good answer back into the wiki as a new page.
modestringenum: fast, deep
fast = router retrieval; deep = harness multi-hop.
openwiki::ask-question
functionMCP: ask a question about a wiki; returns a cited answer.
Cron: refresh every wiki whose auto-refresh interval has elapsed.
refreshedinteger*required
Delete a wiki and all its pages. Params: { id }.
openwiki::diagram
functionGenerate a Mermaid diagram (architecture|dataflow|deps) of a wiki.
kindstringenum: architecture, dataflow, deps
Build the AGENTS.md/CLAUDE.md pointer block for a wiki.
targetsstring[]enum: AGENTS.md, CLAUDE.md
openwiki::gen-stats
functionMeasurement: source bytes the agent read and page bytes produced for a generation.
openwiki::generate
functionStart generating a source-grounded wiki for a git repository URL. Returns immediately with { wiki_id, status }; poll openwiki::status.
modelstring
Optional LLM model id, routed via llm-router.
refstring
Optional branch/tag/commit to check out (default: default branch).
repo_urlstring*required
HTTPS git URL of a public repository.
steerobject
Optional per-repo steering (repo_notes, explicit pages, caps). Mirrors openwiki.json.
openwiki::http::ask
functionHTTP POST /openwiki/api/wikis/:id/ask
status_codeinteger*required
openwiki::http::diagram
functionHTTP GET /openwiki/api/wikis/:id/diagram
status_codeinteger*required
openwiki::http::events
functionHTTP GET /openwiki/api/wikis/:id/events (SSE live progress)
status_codeinteger*required
openwiki::http::models
functionHTTP GET /openwiki/api/models
status_codeinteger*required
openwiki::http::page-get
functionHTTP GET /openwiki/api/wikis/:id/pages/:slug
status_codeinteger*required
HTTP GET /openwiki/api/wikis/:id/pages
status_codeinteger*required
openwiki::http::refresh
functionHTTP POST /openwiki/api/wikis/:id/refresh
status_codeinteger*required
HTTP PUT /openwiki/api/wikis/:id/schedule
status_codeinteger*required
openwiki::http::search
functionHTTP GET /openwiki/api/wikis/:id/search?q=
status_codeinteger*required
openwiki::http::ui
functionHTTP: serve the OpenWiki browser UI.
status_codeinteger*required
HTTP DELETE /openwiki/api/wikis/:id
status_codeinteger*required
openwiki::http::wiki-get
functionHTTP GET /openwiki/api/wikis/:id
status_codeinteger*required
HTTP GET /openwiki/api/wikis/:id/status
status_codeinteger*required
HTTP POST /openwiki/api/wikis
status_codeinteger*required
HTTP GET /openwiki/api/wikis
status_codeinteger*required
Validate every page citation against the clone and flag thin pages.
issuesobject[]*required
kindstring*requiredenum: broken-citation, orphan, missing-xref, stale, thin
Models available via llm-router (for the UI's model picker), plus the configured default. Empty when no provider is configured.
default_modelstring*required
modelsobject[]*required
supports_structured_outputboolean
Reload runtime config when the openwiki configuration entry changes.
Internal: routes harness::turn-completed events to the active generation.
Internal: routes harness::turn-started events (sub-agent spawns) to the active generation.
Get a single wiki page (markdown body + metadata). Params: { id, slug } (slug from openwiki::pages).
confidencestringenum: low, medium, high
generatorstringenum: harness, router, heuristic
statusstringenum: current, needs-review, stale
List all pages of a wiki. Params: { id }.
pagesobject[]*required
confidencestringenum: low, medium, high
generatorstringenum: harness, router, heuristic
statusstringenum: current, needs-review, stale
MCP: read one wiki page (markdown + metadata).
confidencestringenum: low, medium, high
generatorstringenum: harness, router, heuristic
statusstringenum: current, needs-review, stale
MCP: list a wiki's structure (categories + pages).
openwiki::refresh
functionPull the repo and regenerate only the pages whose source changed (incremental).
refreshstring*requiredenum: regenerating, up_to_date, in_progress, error
Search pages of a wiki by keyword. Params: { id, q }.
openwiki::set-schedule
functionSet a wiki auto-refresh cadence: off | 3h | 6h | 12h | daily | weekly | a cron string. Params: { id, schedule }.
openwiki::src::grep
functionSearch file contents in a wiki's cloned repo. Params: { id, pattern, max? }.
openwiki::src::list
functionList files (path, language, priority) in a wiki's cloned repo. Params: { id, dir? }.
openwiki::src::read
functionRead a file (optional 1-indexed line window) from a wiki's cloned repo. Params: { id, path, from?, to? }.
Poll generation status for a wiki id.
phasestring*requiredenum: queued, cloning, inventorying, planning, generating, linting, …
Fetch a single wiki's metadata.
category_countinteger*required
generatingboolean*required
page_countinteger*required
List all wikis generated by this worker.
wikisobject[]*required
category_countinteger*required
generatingboolean*required
page_countinteger*required
openwiki::write-page
functionA page-writer sub-agent stores its finished page (markdown + metadata) for a generating wiki.