Get variant
get_variantFetch detailed product variant data by ID, including pricing, stock, media, and status. Provides the storefront path for direct linking.
Instructions
Get a single variant by its ID (name, SKU, pricing, stocks, media, status). relative_link_url is the variant's storefront path; prefix it with the store's b2c_url (get_store) for a full link, or use list_variant_links to get that joined for you.
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": "get_variant"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Variant ID (UUID). |