Skip to content

API Reference parrot_tools.wiki.tools

github-actions[bot] edited this page Dec 2, 2026 · 4 revisions

parrot_tools.wiki.tools

View source

Wiki AbstractTool wrappers (FEAT-403 Module 5).

Six AbstractTool subclasses that expose the wiki retrieval/authoring surface (BaseWikiStore) as native tools, so they can be registered with a StdioMCPServer (core) and appear as first-class MCP tools at tool-selection time — equal standing with Grep/Read instead of competing via a Bash-invoked CLI.

Class LedgerClaimTool

Claim an issue from the SDD ledger.

Parameter Type Default Description
ledger_service 'LedgerService'

Class LedgerCloseTool

Close an issue in the SDD ledger.

Parameter Type Default Description
ledger_service 'LedgerService'

Class LedgerContextTool

Get context from the SDD ledger for specific files.

Parameter Type Default Description
ledger_service 'LedgerService'

Class LedgerListTool

List SDD ledger issues by status, kind, severity or about prefix.

Parameter Type Default Description
ledger_service 'LedgerService'

Class LedgerOpenTool

Open a new issue in the SDD work ledger.

Parameter Type Default Description
ledger_service 'LedgerService'

Class LedgerReadyTool

Get ready (unclaimed) work from the SDD ledger.

Parameter Type Default Description
ledger_service 'LedgerService'

Class LedgerShowTool

Show one SDD ledger issue in full, including body and event history.

Parameter Type Default Description
ledger_service 'LedgerService'

Class UsageReportTool

Report per-feature token and cost usage.

Class VaultIngestTool

(Re)build the wiki retrieval plane from an Obsidian vault.

Parameter Type Default Description
store BaseWikiStore
root Path
config WikiProjectConfig

Class WikiIngestBatchTool

Apply source slices pushed by wikitoolkit build/upsert/ingest in remote mode.

At most 200 slices and 1 MiB per call. For the CLI build push, not for agents.

Parameter Type Default Description
store BaseWikiStore
root Path
config WikiProjectConfig

Class WikiLintTool

Lint the wiki knowledge graph and report integrity findings.

Parameter Type Default Description
store BaseWikiStore
storage_dir Path | None None

Class WikiNoteTool

Append a dated note to an existing wiki page.

Parameter Type Default Description
store BaseWikiStore
storage_dir Path | None None

Class WikiPageHashesTool

Return stored content hashes for up to 2000 page ids.

Delta oracle for the wikitoolkit CLI build push; not meant for agents.

Parameter Type Default Description
store BaseWikiStore

Class WikiPageTool

Read a full wiki page by ID — file summaries, API outlines, content. Use IDs returned by wiki_query.

Parameter Type Default Description
store BaseWikiStore

Class WikiQueryTool

Search the codebase knowledge graph for files, modules, symbols, or concepts. Returns ranked page stubs with IDs for drill-down. Use BEFORE grep/find/Read on large repos.

Parameter Type Default Description
store BaseWikiStore
glossary_dir Path | None None

Class WikiRelatedTool

Follow typed edges (contains, references) from a wiki page to discover connected files and modules.

Parameter Type Default Description
store BaseWikiStore

Class WikiRememberTool

Save durable knowledge to the knowledge graph — decisions, gotchas, cross-file relationships. Survives across sessions.

Parameter Type Default Description
store BaseWikiStore
storage_dir Path | None None

Class WikiStandupTool

Render a wiki brief; write only when explicitly requested, to local storage.

Parameter Type Default Description
store BaseWikiStore
root Path
config WikiProjectConfig

Class WikiStatusTool

Check knowledge graph health: page count, staleness, last build time.

Parameter Type Default Description
store BaseWikiStore

Class WikiSyncPullTool

Return remote sync data used by wikitoolkit sync in remote mode; not for agents.

Parameter Type Default Description
store BaseWikiStore

Class WikiSyncPushTool

Merge remote sync data used by wikitoolkit sync in remote mode; not for agents.

At most 200 pages and 1 MiB per call; the client chunks larger pushes.

Parameter Type Default Description
store BaseWikiStore
wiki_name str
root Path | None None
config WikiProjectConfig | None None

Function create_bulk_tools

Server-only page hash, ingest, and remote sync tools for the CLI.

create_bulk_tools(store: BaseWikiStore, root: Path, config: WikiProjectConfig) -> list[AbstractTool]

Parameter Type Default Description
store BaseWikiStore
root Path
config WikiProjectConfig

Returns: list[AbstractTool]

Function create_wiki_tools

Create the wiki tools bound to store, plus ledger tools when ledger_service is provided.

create_wiki_tools(store: BaseWikiStore, root: Path | None = None, config: WikiProjectConfig | None = None, ledger_service: Union['LedgerService', None] = None, glossary_dir: Path | None = None) -> list[AbstractTool]

Parameter Type Default Description
store BaseWikiStore Wiki retrieval-plane backend the tools call directly.
root Path | None None Wiki project root. When given together with config, wiki_remember/wiki_note also append an entry to the wiki's log.md audit trail (via WikiBookkeeper), matching the equivalent CLI commands (cli.py:remember/note).
config WikiProjectConfig | None None Wiki project config — see root.
ledger_service Union['LedgerService', None] None Optional ledger service for ledger tools.
glossary_dir Path | None None Optional glossary-plane directory used to prepend matching glossary definitions to wiki_query results.

Returns: list[AbstractTool] — The six AbstractTool instances: wiki_query, wiki_page, wiki_related, wiki_remember, wiki_note, wiki_status, plus ledger tools when ledger_service is provided.

Architecture

Clients

Bots & Agents

Memory

Knowledge

Tools & Toolkits

Flows

Experts

Skills

Stores & Loaders

MCP & A2A

Server & APIs

Integrations

Outputs & A2UI

Prompts

Security

Operations

Migration

SDD Tooling

LLM Wiki

Deployment

Decisions

API Reference

Clone this wiki locally