retrieve_index
Preview what retrieve_context WOULD return, without paying for the bodies. Same traversal, same nodes, but each entry is just id, title, tier, tags and approx_tokens - what reading that one node would cost.
Instructions
Preview what retrieve_context WOULD return, without paying for the
bodies. Same traversal, same nodes, but each entry is just id, title,
tier, tags and approx_tokens - what reading that one node would
cost. Follow up with fetch_nodes(ids) for the ones worth reading.
Prefer this over retrieve_context when the topic is broad, when you
only need one specific thing from a wide neighborhood, or when
retrieve_context's approx_tokens came back larger than you want to
spend. Prefer retrieve_context when the neighborhood is small or you
intend to read most of it - two round trips to save a few hundred
tokens is a worse deal than one round trip.
tags optionally narrows to nodes carrying any of them; the reserved
ones are "decision", "bugfix", "security_alert" and "sensitive".
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hops | No | ||
| tags | No | ||
| anchor | Yes | ||
| hub_cutoff | No |