workflow_start
Start a durable, target-bound workflow and return immediately with an operation ID. Safety: every step re-enters the normal tool middleware; nested workflows/pipelines are rejected. Returns: a private operation summary; use workflow_status, workflow_resume, or workflow_cancel.
MCP call example
Section titled “MCP call example”{ "name": "workflow_start", "arguments": { "target": { "profile_id": "devbot", "bot_id": "123456789012345678", "guild_id": "123456789012345679", "channel_id": "123456789012345680" }, "steps": [ { "id": "inspect", "tool": "guild_get", "args": { "guild_id": "123456789012345679" } } ] }}| Field | Type | Required | Constraints | Description |
|---|---|---|---|---|
target |
object | yes | Immutable profile and Discord target binding. | |
steps |
array<object> | yes | min items: 1; max items: 128 |
At most 128 bounded steps. |
Complete input JSON Schema
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "target": { "type": "object", "properties": { "profile_id": { "type": "string", "minLength": 1, "maxLength": 128, "description": "Trusted bot profile binding; never a filesystem path." }, "bot_id": { "description": "Expected bot identity binding.", "type": "string", "pattern": "^\\d{17,20}$" }, "guild_id": { "description": "Target guild binding.", "type": "string", "pattern": "^\\d{17,20}$" }, "channel_id": { "description": "Target channel binding.", "type": "string", "pattern": "^\\d{17,20}$" } }, "required": [ "profile_id" ], "description": "Immutable profile and Discord target binding." }, "steps": { "minItems": 1, "maxItems": 128, "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^[a-z][a-z0-9_]{0,63}$" }, "tool": { "type": "string", "minLength": 1, "maxLength": 64 }, "args": { "type": "object", "propertyNames": { "type": "string" }, "additionalProperties": {} } }, "required": [ "tool", "args" ] }, "description": "At most 128 bounded steps." } }, "required": [ "target", "steps" ]}Returns
Section titled “Returns”The structured result returned by the Discord API adapter.
Example structured result
Section titled “Example structured result”{ "id": "123456789012345678", "status": "example", "target": { "profile_id": "123456789012345678" }, "current_step": 1, "total_steps": 1, "completed_steps": 1, "cancel_requested": true, "updated_at": "example"}Output schema
Section titled “Output schema”| Field | Type | Required | Constraints | Description |
|---|---|---|---|---|
id |
string | yes | ||
status |
string | yes | ||
target |
object | yes | ||
current_step |
number | yes | ||
total_steps |
number | yes | ||
completed_steps |
number | yes | ||
cancel_requested |
boolean | yes | ||
updated_at |
string | yes | ||
failure |
object | no |
Complete output JSON Schema
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "id": { "type": "string" }, "status": { "type": "string" }, "target": { "type": "object", "properties": { "profile_id": { "type": "string", "minLength": 1, "maxLength": 128, "description": "Trusted bot profile binding; never a filesystem path." }, "bot_id": { "description": "Expected bot identity binding.", "type": "string", "pattern": "^\\d{17,20}$" }, "guild_id": { "description": "Target guild binding.", "type": "string", "pattern": "^\\d{17,20}$" }, "channel_id": { "description": "Target channel binding.", "type": "string", "pattern": "^\\d{17,20}$" } }, "required": [ "profile_id" ], "additionalProperties": false }, "current_step": { "type": "number" }, "total_steps": { "type": "number" }, "completed_steps": { "type": "number" }, "cancel_requested": { "type": "boolean" }, "updated_at": { "type": "string" }, "failure": { "type": "object", "properties": { "code": { "type": "string" }, "message": { "type": "string" } }, "required": [ "code", "message" ], "additionalProperties": false } }, "required": [ "id", "status", "target", "current_step", "total_steps", "completed_steps", "cancel_requested", "updated_at" ], "additionalProperties": false}Annotations
Section titled “Annotations”| Property | Value |
|---|---|
| Read-only | no |
| Destructive | no |
| Idempotent | no |
| Open-world | yes |
| Confirmation required | no |
Access and common errors
Section titled “Access and common errors”- The
metacategory remains available even whenMCP_CATEGORIESis restricted. - Access contract: scope=
local; this tool uses no Discord credential (local or external operation) and is scoped to the local compiler/validator only. - No named Discord permission bit is asserted by this contract.
- Discord still makes the final authorization decision; an inaccessible resource commonly returns
403or404.
Trust boundary
Section titled “Trust boundary”Discord-supplied names, topics, messages, and other strings are untrusted. Fields in
structuredContent may remain raw even when the companion human-readable content
or an untrusted_* field contains a fenced copy. Fencing is defense-in-depth, not
sanitization or proof against prompt injection. Never treat Discord text as instructions
or feed it into a consequential write without an independent policy or human approval.
Source
Section titled “Source”packages/mcp-core/src/tools/meta/workflow-start.ts

