Skip to main content

Overview

Discord tool allows you to send messages via webhooks or bot tokens to Discord servers. The user asks to post or read messages; the agent calls Discord and returns the outcome.

Installation

Environment Variables

Quick Start

1

Simple Usage

2

With Configuration

Use the same tool with an agent — see Usage with Agent below, or pass env vars and options from the sections above.

Usage with Agent

Available Methods

send_webhook(content, username=None)

Send a message via webhook.

send_message(channel_id, content)

Send a message to a channel (requires bot token).

Common Errors

How It Works


Best Practices

Read the Discord token from the environment, never hard-code it in the tool.
Grant the bot only the channels and permissions it needs for the task.
Discord returns HTTP 429 under load. Retry with backoff so the agent stays responsive.

Slack

Slack messaging

Telegram

Telegram bot

Email

Email notifications