Search Records
search_recordsSearch Odoo records by model and domain filters, then retrieve selected fields with sorting, limits, and pagination for targeted ERP data queries.
Instructions
Search records in an Odoo model using domain filters.
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 | Maximum number of records to return (default: 50) | |
| model | Yes | The technical name of the model (e.g., 'res.partner') | |
| order | No | Sort order (e.g., 'name asc, id desc') | |
| domain | No | Odoo domain filter (e.g., [['is_company', '=', True]]) If not specified, returns all records up to limit. | |
| fields | No | List of field names to retrieve. | |
| offset | No | Number of records to skip (for pagination) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||