1inch-swap
Installation
SKILL.md
1inch Swap
Use the authenticated MCP tool swap. Do not hand-build calldata for normal flows.
Recommended: connect the user's wallet first (WalletConnect)
Unless the user explicitly wants to sign with their own tooling (private key, cast, viem), offer WalletConnect before executing: pair via the walletconnect tool (see the 1inch-walletconnect skill), then call swap. With an active session, execute defaults to true — the tool handles approve txs, EIP-712 signing, submission, and native escrow sends through the connected wallet, and the user simply approves each prompt in their wallet app. No key handling, no manual signing steps.
- Set
execute: falseonly when the user wants unsigned calldata / typed data to sign elsewhere. - Set
execute: trueexplicitly to require a wallet session (errors if not connected).
Modes
- Classic — on-chain via aggregation router; user pays gas.
preferredType: "classic". - Fusion — gasless intent; resolvers fill.
preferredType: "fusion". - Cross-chain — set
dstChain;preferredType: "crosschain".