Get Fields
get_fieldsRetrieve field definitions and attributes for any Odoo model. Provide a model name to get all fields, or specify field names and attributes to narrow results.
Instructions
Get field information for an Odoo model using ORM fields_get().
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": "get_fields"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | Yes | Model name (e.g., 'res.partner') | |
| fields | No | Specific field names to retrieve (None = all fields) | |
| attributes | No | Field attributes to return (None = default attributes including type, string, help, required, readonly, store, selection, comodel_name, inverse_name, domain) | |
| field_filter | No | Optional filter for field name (e.g., 'name' to find name-related fields) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |