neighbors
Map one wiki page's direct incoming and outgoing wikilinks in a single hop, returning linked slugs, direction, and relationship labels for knowledge graph traversal.
Instructions
Explore one wiki page's incoming and outgoing [[wikilinks]], one hop only. Returns a JSON array in text of {slug, direction, phrase}, sorted by neighbor slug: out means the input page links to that slug; in means that slug links to the input page. phrase is the stored relationship label, possibly empty. Use after discovering a page with search or list_pages; use search for content matches, list_pages for the full catalog, or read_page for one neighbor's body. No bodies, pagination, or result cap. Unknown or unlinked slugs return []; dangling links may be included, so read_page can report a missing target. Local index read only, no model call or writes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes | Exact wiki slug from search/list_pages, e.g. climate-tech, not a title or path. The query includes links in both directions; it does not traverse multiple hops. |