Remove a cart line
order_remove_lineRemove a line from the session cart, returning the remaining cart.
Call it when the customer asks to drop the line: their request is the go-ahead,
and the line is removed on this call. Returns an
ErrorResponse(line_not_found) if no line has that line_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": {
"session_id": "<session_id>",
"line_id": "<line_id>"
},
"name": "order_remove_line"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| line_id | Yes | ||
| session_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |