Executes a cross-chain token swap — swapping a token on one chain for a different (or same) token on another chain. Delegates the full workflow to the cross-chain-executor agent, which handles quoting, route evaluation, safety checks, bridge monitoring, and destination confirmation.
Activate when the user asks:
| Parameter | Required | Default | Description |
|---|---|---|---|
| ---------------- | -------- | ---------- | ---------------------------------------------------- |
| tokenIn | Yes | — | Input token symbol or address on source chain |
| tokenOut | Yes | — | Output token symbol or address on destination chain |
| amount | Yes | — | Amount to swap (human-readable, e.g., "1.5" or "1000") |
| sourceChain | Yes | — | Source chain name (e.g., "ethereum", "arbitrum") |
| destChain | Yes | — | Destination chain name (e.g., "base", "optimism") |
| slippage | No | auto | Slippage tolerance (e.g., "0.5" for 0.5%) |
| recipient | No | Same wallet | Recipient address on destination chain |
mcp__uniswap__getSupportedChains.mcp__uniswap__getTokenInfo.execute-swap skill instead.Task(subagent_type:cross-chain-executor) with:Cross-Chain Swap Complete
Source: 1.5 ETH on Ethereum
Destination: 2,850.25 USDC on Base
Fees: $3.50 (gas: $2.50, bridge: $1.00)
Settlement: 2 min 35 sec
Source Tx: 0xabc...123
Bridge ID: 0x789...abc
Dest Tx: 0xdef...456
Risk: LOW | Safety: APPROVED
| Error | User-Facing Message | Suggested Action |
|---|---|---|
| ---------------------------- | ---------------------------------------------------------------- | ------------------------------------ |
| Unsupported chain | "Chain [name] is not supported for cross-chain swaps." | Check supported chains |
| Same chain | "Source and destination are the same chain. Use a regular swap." | Use execute-swap skill |
| Safety veto | "This swap was blocked by safety checks: [reason]." | Reduce amount or check token |
| Risk veto | "Risk assessment vetoed: [reason]." | Choose a different route or amount |
| Bridge stuck | "Bridge settlement is taking longer than expected." | Wait or check order ID manually |
| Bridge failed | "Bridge operation failed. Funds should remain on source chain." | Check source wallet balance |
| Insufficient balance | "Not enough [token] on [chain] to execute this swap." | Check balance and reduce amount |
共 1 个版本