tree_find
Locate any node in one call by matching names, IDs, payload fields, links or kinds, then scope results to a branch or current state. Search the tree instead of walking it.
Instructions
Search the Quern instead of walking it — when the user names an element,
locate it in one call. query is a case-insensitive substring over a
node's prose — id, name, kind, meta, every string in its payload and the
sources its params cite — so the external identifier, definition or
field name a user arrives with resolves to its node without knowing the
path; kind/has_param match exactly; links_to finds every node
referencing a path; payload matches payload FIELDS by value —
{"state": "Opened"}, or {"state": ["Opened", "Proposed"]} for any of
several — which is how you scope by state without a substring also
matching the word in a description; under scopes to a branch;
current_only drops nodes another node supersedes (the "what do we hold
now?" query). Returns paths + a one-line summary each; then tree_get the
one you meant. Purely structural.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | ||
| limit | No | ||
| query | No | ||
| under | No | ||
| payload | No | ||
| links_to | No | ||
| has_param | No | ||
| current_only | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||