Route Generator
Catalog file: src/catalog/discord.routes.json
Each entry:
json
{
"name": "discord.post_message",
"aliases": ["send message"],
"method": "POST",
"path": "/channels/:channel_id/messages",
"description": "Post a message to a channel.",
"pack": "CORE",
"confirm": true,
"schema": {
"type": "object",
"properties": {
"channel_id": {"type":"string"},
"content": {"type":"string"}
},
"required": ["channel_id","content"]
}
}confirm: trueshows a preview; call again withconfirm:falseto execute.- Path params like
:channel_idare required and merged into the request path. - For
GET/DELETEnon-path fields becomequery; for others they becomebody. - Messages auto-apply
allowed_mentionsfrom policy unless you override.
Helper tools:
discord.search_tools(query)discord.help(tool_name)discord.tools_index()