PostCartsIdLineItems
Add product variants to a shopping cart using the Medusa MCP Server. This tool enables you to manage cart items by specifying product details and cart identifiers.
Instructions
Add a product variant as a line item in the cart.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "PostCartsIdLineItems"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ||
| fields | No |