Add a stay to the booking cart
bk_cart_addRequires sign-in and the booking:cart permission. Add a product to the live booking cart, or answer a question the park asks while adding it.
First add: omit session_key to open a new cart, and pass operator_id, product_id, check_in, check_out, adults, children and quoted_price (the price from bk_operator_availability).
The response status is 'added' when the item is in the cart, or 'question_pending' with one question from the park and a pending_token. Answering means calling again with the same session_key, the pending_token and answer={field_id, value}; this repeats until the status is 'added'. Each response carries the session_key that identifies the cart in later cart calls.
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": "bk_cart_add"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| adults | No | Adults (default 2) | |
| answer | No | Answer to the pending booking question | |
| check_in | No | Check-in date YYYY-MM-DD | |
| children | No | Children (default 0) | |
| check_out | No | Check-out date YYYY-MM-DD | |
| product_id | No | Product id from bk_operator_availability | |
| operator_id | No | Operator id from bk_search_operators (for a new product add) | |
| session_key | No | Cart session key from a prior cart call. Omit on the very first add to open a new cart. | |
| quoted_price | No | The price quoted by bk_operator_availability for this product | |
| pending_token | No | Token from a prior 'question_pending' response (when answering a booking question) |