Search Odoo records
search_recordsQuery records from a specified Odoo model using domain filters, selected fields, sorting, and pagination, with total match count and next-page offset.
Instructions
Search records matching a domain and return selected fields.
Returns the total number of matches, the current page of records and,
when more records exist, next_offset for the following page.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Page size (default 50, max 200). | |
| model | Yes | Technical model name, e.g. 'res.partner', 'sale.order', 'account.move'. | |
| order | No | Sort clause, e.g. 'date_order desc, id'. | |
| domain | No | Odoo domain: a list of [field, operator, value] conditions, optionally combined with '&', '|', '!' in prefix notation. Conditions are AND-ed by default. Example: [["customer_rank", ">", 0], ["country_id.code", "=", "IN"]]. Omit or pass [] to match all records. | |
| fields | No | Field names to return. Omit for a compact default set; pass ['*'] for all non-binary fields. Use describe_model to discover field names. | |
| offset | No | Records to skip, for paging. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||