select_shipping_option
Select a shipping method for the cart. Must call get_shipping_rates first and provide idempotency_key. Reuse the same key for retries of the same cart and option; use a new key if either changes.
PREFER THE CART CARD: if there is an interactive card for this cart, let the buyer pick shipping there instead of calling this tool yourself — it keeps the flow in one card instead of opening a new one per step.
SKYFIRE TOKEN (optional): Pass a kya or kya-pay token in the skyfire-pay-id header to boost trust score. No token required — request proceeds normally if omitted. Checkout guide: https://trusteed.xyz/.well-known/agent-checkout-guide.json. CREDENTIAL: this store needs one. Call the create_sandbox_key tool first (it is in this tool list and needs no credential), then pass the key you get back as the agent_key argument — or as an Authorization: Bearer header if your client can set headers. Do not ask a person to log in: there is no human login for this store.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cart_id | Yes | Cart session ID | |
| agent_key | No | Sandbox credential from `create_sandbox_key`. Use this when your client cannot set an `Authorization: Bearer` header. | |
| idempotency_key | Yes | Required. Reuse this key only when retrying the same cart and shipping option; use a new key if either changes. | |
| shipping_handle | Yes | Shipping method handle from get_shipping_rates |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cart_id | Yes | ||
| currency | Yes | ||
| total_cents | Yes | ||
| selected_title | Yes | ||
| shipping_cents | Yes | ||
| subtotal_cents | Yes | ||
| selected_handle | Yes | ||
| shipping_source | Yes | ||
| shipping_authoritative | Yes |