Create UCP Checkout Session
create_checkoutCreate a uchk_* UCP checkout session either by converting an existing ucart_* cart or directly from buy-now line_items. Use this when transitioning from browsing/cart to purchase commitment; call complete_checkout next to generate the final payment handoff. Parameters: pass checkout.cart_id (with checkout.line_items: []) to convert a cart, or pass non-empty checkout.line_items plus optional checkout.buyer and checkout.context. Behavior: locks pre-completion USD cent totals, attaches instant digital fulfillment options, and returns uchk_* session state.
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": {
"checkout": "<checkout>"
},
"name": "create_checkout"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| meta | No | UCP protocol request metadata (meta.ucp-agent and meta.idempotency-key). | |
| checkout | Yes | UCP checkout creation body. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ucp | Yes | Negotiated UCP protocol metadata and capability intersection. |