Create command
create_commandCreates a slash command, optionally with edits that build its flow. A subcommand is its own command named like 'mod ban'. Discord shows new commands within a minute.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"app_id": "<app_id>",
"name": "<name>",
"description": "<description>"
},
"name": "create_command"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The name, lowercase, like 'ping'. | |
| edits | No | The edits to make to the flow, applied in order. | |
| app_id | Yes | The ID of the app, from list_apps. | |
| enabled | No | Whether it runs right away. Defaults to true. | |
| description | Yes | What it does, shown in Discord. |