Get a buy link
checkout_linkReturn a link where a buyer can purchase a published product (opens the store with the product selected). Pass the store's agent_key (returned by open_store).
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": {
"agent_key": "<agent_key>",
"product_id": "<product_id>"
},
"name": "checkout_link"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent_key | Yes | The store's agent key (rpy_…), returned by open_store | |
| product_id | Yes | Product id from list_products |