Skip to content

Sequence programs: update, delete

The Sequence Verbs update, delete as MCP do programs, with inputs, result, refusals and an example.

Reference for Sequence, one group of Sequence programs.

Sequence.update

Changes the given properties of a Sequence. Verb page.

Text
do: return await $.Sequence.update(input)

Emits Sequence.updated.

Inputs

InputTypeRequiredDescription
idstringrequiredThe id of the Sequence.
stepsjsonThe steps, waits, and branches.
exitOnstringThe Events that end it from any step, such as a reply or a purchase.

Returns

OutputTypeRequiredDescription
sequenceSequencerequiredThe Sequence.

Refuses when

CheckErrorFixThen call
The key is valid, but its scopes do not allow this operation.forbiddenUse a key whose scopes cover the operation, or ask an owner of the namespace to grant them.None.

Example

JSON
{
  "name": "do",
  "arguments": {
    "code": "return await $.Sequence.update({ id: 'sequence_H7knHGrBdP', steps: {} })"
  }
}

Sequence.delete

Deletes a Sequence: a soft delete that keeps its history, undone by Thing.restore. Verb page.

Text
do: return await $.Sequence.delete(input)

Emits Sequence.deleted.

Inputs

InputTypeRequiredDescription
idstringrequiredThe id of the Sequence.

Returns

OutputTypeRequiredDescription
sequenceSequencerequiredThe Sequence.

Refuses when

CheckErrorFixThen call
The key is valid, but its scopes do not allow this operation.forbiddenUse a key whose scopes cover the operation, or ask an owner of the namespace to grant them.None.

Example

JSON
{
  "name": "do",
  "arguments": {
    "code": "return await $.Sequence.delete({ id: 'sequence_H7knHGrBdP' })"
  }
}