Built LMS Help Center
MCP ServerTool Reference

Edit Cb Block

Edit Cb Block MCP tool.

Edit Cb Block

Insert, update, move or delete one block in a module, by op. insert and move place it at the top level, in a container via parent_block_id plus slot (optional for one-slot containers), or via after_block_id/before_block_id; index sets position. insert takes block {type, props}. update merges props; type cannot change and slot children cannot be set via props. delete also removes nested blocks.

Contract

FieldValue
Tool nameedit_cb_block
Domaincourse_builder
Required scopescourses:write
TitleEdit course builder block
Read only hintfalse
Destructive hinttrue
Idempotent hinttrue
Open world hintfalse
Bulk limitnone
Timeout10000ms
Kill switch keycourse_builder.blocks.edit
REST siblingsPOST /api/public/v1/course-builder/modules/{module_id}/blocks, PATCH /api/public/v1/course-builder/modules/{module_id}/blocks/{block_id}, POST /api/public/v1/course-builder/modules/{module_id}/blocks/{block_id}/move, DELETE /api/public/v1/course-builder/modules/{module_id}/blocks/{block_id}

Input Schema

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "module_id": {
      "type": "string",
      "format": "uuid",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    },
    "op": {
      "type": "string",
      "enum": [
        "insert",
        "update",
        "move",
        "delete"
      ]
    },
    "block_id": {
      "type": "string",
      "maxLength": 200,
      "pattern": "^[A-Za-z0-9_-]+(?:[\\/:][A-Za-z0-9_-]+)*$"
    },
    "block": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "HeadingBlock",
            "ParagraphBlock",
            "ListBlock",
            "AccordionBlock",
            "TabsBlock",
            "ColumnLayoutBlock",
            "NestedColumnLayoutBlock",
            "SpacerBlock",
            "SectionBlock",
            "DividerBlock",
            "ButtonBlock",
            "CardBlock",
            "QuoteBlock",
            "CalloutBlock",
            "KeyTakeawaysBlock",
            "ComparisonPanelsBlock",
            "StatsBlock",
            "ImageBlock",
            "VideoBlock",
            "ImageHotspotBlock",
            "TimelineBlock",
            "ProcessFlowBlock",
            "PhotoGridBlock",
            "TextImageBlock",
            "CodeBlock",
            "AudioBlock",
            "ChartBlock",
            "EmbedBlock",
            "SimpleQuizBlock",
            "SimpleAssignmentBlock",
            "SCORMBlock",
            "XApiContentBlock",
            "RevealBlock",
            "FlipCardsBlock",
            "RubricReviewBlock",
            "WorkedExampleBlock",
            "PolicyAcknowledgmentBlock",
            "InteractiveCarousel",
            "DynamicComparisonTable",
            "DragDropMatching",
            "ScenarioBranching",
            "SortingActivity",
            "RolePlayBlock"
          ]
        },
        "props": {
          "default": {},
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        }
      },
      "required": [
        "type",
        "props"
      ],
      "additionalProperties": false
    },
    "props": {
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {}
    },
    "parent_block_id": {
      "type": "string",
      "minLength": 1
    },
    "slot": {
      "type": "string",
      "minLength": 1
    },
    "index": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    },
    "after_block_id": {
      "type": "string",
      "minLength": 1
    },
    "before_block_id": {
      "type": "string",
      "minLength": 1
    },
    "idempotency_key": {
      "type": "string",
      "minLength": 8,
      "maxLength": 200,
      "pattern": "^[A-Za-z0-9._:-]+$"
    }
  },
  "required": [
    "module_id",
    "op",
    "idempotency_key"
  ],
  "additionalProperties": false
}

Output Schema

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "content": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "const": "text"
          },
          "text": {
            "type": "string"
          }
        },
        "required": [
          "type",
          "text"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": [
    "content"
  ],
  "additionalProperties": false
}

On this page