agent_buy_course
Build a checkout for one or more courses
Turn a course into a purchase. Give one or more product ids and this creates a real cart on the store and returns a checkout link that completes the sale. Free to call; the course price is paid at checkout. Use agent_search_courses to find the product id first. Multiple ids go in one cart, so a recommended set can be bought together in a single transaction.
Responses:
200: Successful Response (Success Response) Content-Type: application/json
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": {
"product_ids": "<product_ids>"
},
"name": "agent_buy_course"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| store | No | main | |
| product_ids | Yes |