commands_bulk_overwrite_guild
commands_bulk_overwrite_guild
Section titled “commands_bulk_overwrite_guild”Category: commands
Atomically REPLACE the guild-scoped command registry. Any commands not in commands are deleted from this guild.
When to use
Section titled “When to use”When NOT to use
Section titled “When NOT to use”| Field | Type | Required | Description |
|---|---|---|---|
application_id | string | yes | Bot/app application ID |
guild_id | string | yes | Guild scope |
commands | array | yes | Full set of commands to register in this guild (replaces existing). |
Returns
Section titled “Returns”\{commands:[\{id, name, type\}], count\}.
Output schema
Section titled “Output schema”| Field | Type | Required | Description |
|---|---|---|---|
commands | array | yes | |
count | number | yes |
Annotations
Section titled “Annotations”| Property | Value |
|---|---|
| Read-only | no |
| Destructive | no |
| Idempotent | yes |
| Open-world | yes |
| Confirmation required | no |
Source
Section titled “Source”packages/mcp-core/src/tools/commands/bulk_overwrite_guild.ts