checkout
Return a private MagicLayers checkout link, valid for one hour. Show the link to the user who submitted the task so they can pay with Stripe and open the task in their browser.
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": {
"task_id": "<task_id>"
},
"name": "checkout"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task_id | Yes | The compact or full UUIDv7 returned by MagicLayers. | |
| task_ref | No | The private task reference. Omit only when the MCP client supplies task authorization in its HTTP header. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| data | No | ||
| error | No |