setPaymentMethod
Select a payment method code on the agent cart. Call listPaymentMethods first and pass one of its codes. Write tool. Does not charge the card.
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": {
"cart_token": "<cart_token>",
"payment_method": "<payment_method>"
},
"name": "setPaymentMethod"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cart_token | Yes | Cart token from createCart. Required on every later cart call. | |
| payment_method | Yes | Payment method code from listPaymentMethods. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | Present when the call failed. The HTTP status stays 200. |