list_by_domain
Lists active memories stored under a domain and its subdomains, newest first. Use it to browse everything in a path or as a fallback when search misses.
Instructions
List active memories for a domain and its subdomains, most recent first.
Fallback when search misses. domain is a path, matched from the outermost segment in: 'acme/x100' lists the module's own memories plus every routine under it. Pass subtree=False for what is filed at exactly that path and nowhere deeper.
A domain that matches no path is retried as a run of segments INSIDE
one, so list_by_domain('p200') still finds the routine once it lives
at 'acme/x100/p200'. The literal reading wins whenever it has rows,
and an ambiguous name (the same code under two modules) covers both
branches rather than picking one -- each row's domain says which
branch it came from. list_domains() is the way to see the paths first.
Returns {"results": [...], "est_tokens": N}. Content is
snippet-truncated per result -- call get_memory(uid) for the full
record; a result's est_tokens estimates what that full record costs,
and the top-level est_tokens is the sum over the results.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | ||
| limit | No | ||
| domain | Yes | ||
| subtree | No |