Discord (Via message_send)
Use the message_send tool. Understudy does not expose a separate provider-specific discord tool.
Musts
- Always:
channel: "discord".
- Use the canonical
message_send schema: recipient, text, threadId, replyTo, messageId, emoji, attachmentUrl, attachmentType, attachmentName, attachmentMimeType.
- Prefer explicit ids in the recipient string when possible, for example
channel:1234567890 or user:1234567890.
Guidelines
- Avoid Markdown tables in outbound Discord messages.
- Mention users as
<@USER_ID>.
- Keep Discord actions within the current Understudy tool surface. Do not invent unsupported fields such as
components, embeds, pollQuestion, thread-create, search, or set-presence.
Targets
- Send-like actions:
recipient: "channel:<id>" or recipient: "user:<id>".
- Message-specific actions: use
messageId, and include recipient when the adapter needs target context.
Common Actions (Examples)
Send message:
{
"action": "send",
"channel": "discord",
"recipient": "channel:123",
"text": "hello"
}
Reply to a message:
{
"action": "reply",
"channel": "discord",
"recipient": "channel:123",
"replyTo": "456",
"text": "Thanks, looking now."
}
Send with attachment:
{
"action": "sendAttachment",
"channel": "discord",
"recipient": "channel:123",
"text": "see attachment",
"attachmentUrl": "/tmp/example.png",
"attachmentType": "image",
"attachmentName": "example.png"
}
{
"action": "edit",
"channel": "discord",
"recipient": "channel:123",
"messageId": "456",
"text": "fixed typo"
}
{
"action": "react",
"channel": "discord",
"recipient": "channel:123",
"messageId": "456",
"emoji": "✅"
}
{
"action": "delete",
"channel": "discord",
"recipient": "channel:123",
"messageId": "456"
}
If you need polls, search, thread creation, pins, moderation, or presence changes, tell the user the current Understudy tool surface does not expose those Discord-specific operations directly.
Writing Style (Discord)
- Short, conversational, low ceremony.
- No markdown tables.
- Mention users as
<@USER_ID>.
1---2name: discord3description: Discord messaging via `message_send` (channel=discord). Use for outbound sends, replies, edits, reactions, deletes, and attachment sends on Discord.4---56# Discord (Via `message_send`)78Use the `message_send` tool. Understudy does not expose a separate provider-specific `discord` tool.910## Musts1112- Always: `channel: "discord"`.13- Use the canonical `message_send` schema: `recipient`, `text`, `threadId`, `replyTo`, `messageId`, `emoji`, `attachmentUrl`, `attachmentType`, `attachmentName`, `attachmentMimeType`.14- Prefer explicit ids in the recipient string when possible, for example `channel:1234567890` or `user:1234567890`.1516## Guidelines1718- Avoid Markdown tables in outbound Discord messages.19- Mention users as `<@USER_ID>`.20- Keep Discord actions within the current Understudy tool surface. Do not invent unsupported fields such as `components`, `embeds`, `pollQuestion`, `thread-create`, `search`, or `set-presence`.2122## Targets2324- Send-like actions: `recipient: "channel:<id>"` or `recipient: "user:<id>"`.25- Message-specific actions: use `messageId`, and include `recipient` when the adapter needs target context.2627## Common Actions (Examples)2829Send message:3031```json32{33 "action": "send",34 "channel": "discord",35 "recipient": "channel:123",36 "text": "hello"37}38```3940Reply to a message:4142```json43{44 "action": "reply",45 "channel": "discord",46 "recipient": "channel:123",47 "replyTo": "456",48 "text": "Thanks, looking now."49}50```5152Send with attachment:5354```json55{56 "action": "sendAttachment",57 "channel": "discord",58 "recipient": "channel:123",59 "text": "see attachment",60 "attachmentUrl": "/tmp/example.png",61 "attachmentType": "image",62 "attachmentName": "example.png"63}64```6566```json67{68 "action": "edit",69 "channel": "discord",70 "recipient": "channel:123",71 "messageId": "456",72 "text": "fixed typo"73}74```7576```json77{78 "action": "react",79 "channel": "discord",80 "recipient": "channel:123",81 "messageId": "456",82 "emoji": "✅"83}84```8586```json87{88 "action": "delete",89 "channel": "discord",90 "recipient": "channel:123",91 "messageId": "456"92}93```9495If you need polls, search, thread creation, pins, moderation, or presence changes, tell the user the current Understudy tool surface does not expose those Discord-specific operations directly.9697## Writing Style (Discord)9899- Short, conversational, low ceremony.100- No markdown tables.101- Mention users as `<@USER_ID>`.