webhooks_create
Create a new webhook for a Discord channel to enable automation endpoints like CI notifiers, alert relays, or cross-posters. Returns the webhook token, store it securely.
Instructions
Purpose: Create a new webhook attached to a channel.
When to use:
Provision an automation endpoint (CI notifier, alert relay, cross-poster).
When NOT to use:
Sending one-off bot messages →
messages_send.
Returns: Full webhook record INCLUDING the token - store it as a secret. The agent needs the token to call webhooks_execute. name remains raw creator-controlled data; untrusted_name provides a separately fenced copy.
Note: This is the only webhooks_*_get-style tool that exposes token in its response. webhooks_get projects token OUT.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Webhook display name (max 80 chars) | |
| avatar | No | base64-encoded image data URI for the webhook avatar, or null | |
| channel_id | Yes | Channel that will host the webhook | |
| audit_reason | No | Reason recorded in audit log (X-Audit-Log-Reason header) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||