Skip to content

MCP: edit operations

item.delete

Removes items, and optionally closes the freed space.

Last updated:

Removes the items. With ripple track, every later item on each affected track moves earlier by the length freed on that track; with ripple all, every later item on every track moves by the length freed, which requires the deleted items to cover one contiguous range; ripple all also moves the timeline markers after the range earlier by that length and removes those inside it (effective.markers_removed, markers_moved).

Arguments#

ArgumentTypeRequiredNotes
item_idsarray of stringyesat least 1 items; at most 200 items
ripplenone, track, allnoNone (default), track or all.

Errors#

Scope#

Scope edit. The scope is the one an API key needs in network mode. Run stuarty command:help item.delete for the same description from the binary, or call the command_help tool.

Next steps#

As an MCP call

tools/call
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "edit",
    "arguments": {
      "project_id": "prj_7k2m9x4q1b",
      "base_revision": 12,
      "operations": [
        {
          "op": "item.delete",
          "args": {
            "item_ids": [
              "itm_a1b2c3d4e5"
            ],
            "ripple": "track"
          }
        }
      ]
    }
  }
}

As a batch file for the CLI

batch.json
[
  {
    "op": "item.delete",
    "args": {
      "item_ids": [
        "itm_a1b2c3d4e5"
      ],
      "ripple": "track"
    }
  }
]
Terminal
stuarty edit --project prj_7k2m9x4q1b --ops batch.json --json

Over HTTP

curl
curl -X POST "http://127.0.0.1:7878/api/v1/projects/prj_7k2m9x4q1b/edit" \
  -H "Authorization: Bearer $STUARTY_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "base_revision": 12,
  "operations": [
    {
      "op": "item.delete",
      "args": {
        "item_ids": [
          "itm_a1b2c3d4e5"
        ],
        "ripple": "track"
      }
    }
  ]
}'

The ids in the example are illustrative: read the real ones with project_get.