get_model_fields
Retrieve field metadata for any Odoo model, including names, types, and constraints. Use it to explore model structure programmatically.
Instructions
Get field metadata for a specific Odoo model
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | Yes | ||
| instance | No | ||
| relevance | No | ||
| max_fields | No | ||
| field_names | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tool | No | Reporting tool name. | |
| count | No | ||
| error | No | Sanitized error message when success is false. | |
| result | No | Mapping of field name to fields_get metadata. | |
| ranking | No | Relevance scores when relevance="top". | |
| success | Yes | False when the call failed; see error. | |
| relevance_applied | No | ||
| restricted_fields | No | Fields marked restricted by the field ACL. |