run_context_command
Executes a Discord Apps context-menu command on a user or message by providing channel ID, command name, and target ID.
Instructions
Run an "Apps" right-click command on a user or a message (context-menu command).
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": {
"channel_id": "<channel_id>",
"command": "<command>",
"target_id": "<target_id>"
},
"name": "run_context_command"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | Command name as shown in the Apps menu | |
| target_id | Yes | User ID (user command) or message ID (message command) | |
| channel_id | Yes | ||
| wait_seconds | No | ||
| application_id | No |