Search records
search_recordsQuery Odoo model records by domain and return selected fields, total count, and pagination status.
Instructions
Searches records of a model with an Odoo domain and returns their fields. Returns total count and has_more for pagination.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"model": "<model>"
},
"name": "search_records"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| model | Yes | Technical model name, e.g. "sale.order", "res.partner", "crm.lead" | |
| order | No | e.g. "date_order desc, id desc" | |
| domain | No | Odoo domain, e.g. [["state","=","sale"],["amount_total",">",1000]]. Empty = all records. | |
| fields | No | Fields to return. Omit for a sensible default set. | |
| offset | No |