get_attribute
Fetch details of a global product attribute from WooCommerce by ID, with optional field selection to limit response data.
Instructions
Get details of a global product attribute. Use list_attribute_terms with the attribute ID to see its values. Use fields param to request only needed fields.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Attribute ID | |
| fields | No | Comma-separated fields to return (default: id,name,slug,type,order_by) |