{
  "name": "discord_send_message",
  "description": "Send a message to a Discord channel. Optionally reply to a specific message by providing message_reference_id.",
  "method": "POST",
  "url": "$AGENT_GATEWAY_URL/api/v1/messages",
  "headers": {
    "Authorization": "Bearer $AGENT_GATEWAY_API_KEY",
    "Content-Type": "application/json"
  },
  "parameters": {
    "type": "object",
    "properties": {
      "channel_id": {
        "type": "string",
        "description": "The Discord channel ID to send the message to"
      },
      "content": {
        "type": "string",
        "description": "The message content (max 2000 characters)"
      },
      "message_reference_id": {
        "type": "string",
        "description": "Optional: message ID to reply to"
      }
    },
    "required": ["channel_id", "content"]
  },
  "body_mapping": "params",
  "body_defaults": {
    "platform": "discord"
  }
}
