wc_get_product
Retrieve a WooCommerce product by its ID to fetch product details via the WordPress REST API for use in inventory, pricing, or content workflows.
Instructions
Get WooCommerce product by ID
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": {
"id": "<id>"
},
"name": "wc_get_product"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes |