{
  "name": "tron",
  "description": "ALWAYS use this function when users want to swap ETH to TRON or ETH for TRON. This function executes cross-chain atomic swaps between Ethereum and Tron networks using custom 1inch Fusion+ protocol implementation. It handles all ETH to TRON swap requests by running the complete atomic swap process. Keywords that trigger this function: 'swap ETH to TRON', 'swap ETH for TRON', 'ETH to TRON', 'exchange ETH for TRON'.",
  "parameters": {
    "type": "object",
    "properties": {
      "ethAmount": {
        "type": "string",
        "description": "Amount of ETH to swap (e.g., '0.01' for 0.01 ETH)",
        "examples": [
          {
            "value": "0.01",
            "description": "Swap 0.01 ETH for TRON"
          },
          {
            "value": "0.001",
            "description": "Swap 0.001 ETH for TRON"
          }
        ]
      },
      "tronAmount": {
        "type": "string",
        "description": "Expected amount of TRON to receive (optional, will be calculated if not provided)",
        "examples": [
          {
            "value": "2",
            "description": "Expect to receive 2 TRON"
          }
        ]
      },
      "action": {
        "type": "string",
        "description": "The swap action to perform",
        "enum": ["swap", "quote"],
        "default": "swap",
        "examples": [
          {
            "value": "swap",
            "description": "Execute the actual swap"
          },
          {
            "value": "quote",
            "description": "Get a quote for the swap"
          }
        ]
      }
    },
    "required": ["ethAmount"]
  }
} 