Find records
find_recordsList records of any content type to get their IDs, filtered by title/word query, field conditions, and order. Use it to find notes, tasks, projects, events, or other items in Sameway.
Instructions
List records of a type to get their ids: all of them, those holding every word of the query in their title or words, or those matching where. The same where and order a collection block takes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | A content type, as the prompt lists it. | |
| limit | No | How many to list. Defaults to 10. | |
| order | No | A field, or -field for the largest or newest first. Newest first when left out. | |
| query | No | Words each record found must hold, in its title or its words, in any order. Leave empty for every record. | |
| where | No | Conditions that must all hold. Each condition is field, operator, value with no spaces around the operator: status=draft, status!=done, title~garden (contains), due<today, due>=+7d, tags=health (has), body= (empty), due!= (set). Dates take 2026-10-01, today, tomorrow, yesterday, now, +7d, -1w, +3h. id!=abc123 leaves one record out, which is how a record lists the others like it. Order is a field name, or -field for the largest or newest first; created_at and updated_at work too. |