Create command

Add a chat command with a reply, who may use it, cooldowns and response type.

MCP tool streamelements_write → create_command

write Confirm

Creates a custom command in your channel. Variables such as $(user) work in the reply, as in the dashboard. The command answers in your chat as soon as it is on, so viewers see it. By default you confirm each call; you can switch that off for this tool.

Parameters

Parameters: create_command
NameTypeDescription
trigger string required string Command name with the prefix, e.g. '!discord'.
reply string required string Text the bot answers with. Variables like $(user) work.
level enum enum Everyone, Subscriber, Regular, VIP, Moderator or Super Moderator. Default: Everyone.
response_type enum enum say, mention, reply or whisper. Default: say.
cooldown_global integer integer Seconds between any two uses.
cooldown_user integer integer Seconds the same viewer must wait.
cost integer integer Loyalty points charged per use. Needs the Loyalty System.

tools/call

JSON-RPC

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "streamelements_write",
    "arguments": {
      "operation": "create_command",
      "arguments": {
        "trigger": "!discord",
        "reply": "Join us on Discord: discord.example/lab",
        "level": "Everyone"
      }
    }
  }
}

Example response

JSON

{
  "content": [
    {
      "type": "text",
      "text": "{ ... same JSON as structuredContent ... }"
    }
  ],
  "structuredContent": {
    "command_id": "c_9e41b7",
    "trigger": "!discord",
    "reply": "Join us on Discord: discord.example/lab",
    "level": "Everyone",
    "response_type": "say",
    "enabled": true
  },
  "isError": false
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.