Swap page link (hand-off)
get_swap_page_linkGet the link to the page where a person completes the swap, with the route and, optionally, the amount prefilled; also the page's markdown twin and the hand-off rule. Use it whenever the person will send from their own wallet: they open the link, check the amount, both addresses and the memo on screen, then send the deposit. Not for an agent that controls the sending wallet: that agent uses create_swap. Builds the URL from the slugs on the server; it creates no swap, reserves no rate and calls no external service. mode=private opens the page with Private mode switched on; via=xmr together with mode=private opens it with Untraceable mode switched on. A swap for a person is completed by that person on the page: open the link, check the amount, both addresses and the memo on screen, then send the deposit from your own wallet. An agent that controls the sending wallet itself uses create_swap and pays the instruction it gets back.
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": {
"from": "<from>",
"to": "<to>"
},
"name": "get_swap_page_link"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | asset slug the person receives, e.g. btc | |
| via | No | with mode=private: xmr opens the page with Untraceable mode switched on (the hop runs on Monero) | |
| from | Yes | asset slug the person sends, e.g. usdt-trc20 | |
| mode | No | private: the page opens with Private mode switched on | |
| amount | No | decimal amount to prefill, as a string; omitted → the page opens without an amount |