tree_find
Locate nodes in the Quern tree by identifier, field, kind, links, payload value, or rule condition without walking the tree; returns matching paths and summaries for follow-up retrieval.
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); where is a condition in the rule grammar, with self the
node it is asked of — kind == 'state' nodes where
len(linked(self, 'deadline')) == 0 — keeping the nodes it holds for,
read-only, without writing a rule; unjudged counts the nodes it read
something absent on. Returns paths + a one-line summary each;
then tree_get the one you meant. Purely structural.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "tree_find"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | ||
| limit | No | ||
| query | No | ||
| under | No | ||
| where | No | ||
| payload | No | ||
| links_to | No | ||
| has_param | No | ||
| current_only | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||