OverviewHistoryStatsSecurity
npx skills add ...
Documentation
SKILL.md
npx skills add ton-connect/kit --skill ton-swap
Swap or trade tokens on the TON blockchain via DEX. Use when the user wants to swap, trade, exchange, convert, buy, or sell tokens like GRAM (ex. TON), USDT, jUSDC, or any jetton. Covers phrases like "swap GRAM (ex. TON) for USDT", "trade tokens", "buy USDT", "exchange jettons".
npx skills add ton-connect/kit --skill ton-swap
Swap tokens on TON via DEX aggregator. Two-step flow: get a quote, confirm with the user, then execute.
| Tool | Required | Optional |
|---|---|---|
get_swap_quote | fromToken, toToken, amount | walletSelector |
emulate_transaction | messages | validUntil |
send_raw_transaction | messages | walletSelector |
get_known_jettons | — | — |
get_known_jettons to resolve the jetton addressget_swap_quote with fromToken, toToken, and amount
"TON" for native GRAM (ex. TON), or the jetton master contract address for tokens"1.5" = 1.5 GRAM (ex. TON))emulate_transaction with the quote's transaction.messages to dry-run the swap — verify the expected money flow (GRAM (ex. TON)/jetton balance changes) before sendingsend_raw_transaction with the transaction params returned by the quoteget_transaction_status with the returned normalizedHash until status is completed or failed (see ton-balance skill). User can ask to skip polling.send_raw_transactionget_transaction_status by default. User can specify whether to check status.ton-create-wallet skill first