Remove a cart line
remove_itemRemove a specific item line from your efood basket using its index, or clear the entire basket when removing the last line.
Instructions
Remove a single line from the basket by its index (see get_cart). Removing the last line clears the basket. Requires authentication.
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": {
"restaurant_id": "<restaurant_id>",
"index": "<index>"
},
"name": "remove_item"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| index | Yes | Zero-based index of the line to remove (from get_cart). | |
| restaurant_id | Yes | Shop/restaurant id. |