Sequence apply edit script

sequence-apply-edit-script · version 1.0.0 · Sequences & diffs · free, no key needed

Apply a keep/delete/insert edit script to a bounded sequence with exact value matching and no fuzz.

Use when you need to: sequence apply edit script · apply sequence edit script · apply keep delete insert ops to a sequence.

Supported

Not supported

Behavior

Input

Output

Limits

Example

Request input:

{
  "sequence": [
    "A",
    "B"
  ],
  "ops": [
    {
      "op": "delete",
      "value": "A"
    },
    {
      "op": "keep",
      "value": "B"
    },
    {
      "op": "insert",
      "value": "A"
    }
  ]
}

Response:

{
  "result": {
    "sequence": [
      "B",
      "A"
    ]
  }
}

How to call it

MCP

Connect https://computefirst.net/mcp (setup), then call execute with:

{
  "id": "sequence-apply-edit-script",
  "version": "1.0.0",
  "input": {
    "sequence": [
      "A",
      "B"
    ],
    "ops": [
      {
        "op": "delete",
        "value": "A"
      },
      {
        "op": "keep",
        "value": "B"
      },
      {
        "op": "insert",
        "value": "A"
      }
    ]
  }
}

HTTP (no key)

curl -X POST https://computefirst.net/v1/tools/sequence-apply-edit-script/versions/1.0.0/execute \
  -H "Content-Type: application/json" \
  -d '{"sequence":["A","B"],"ops":[{"op":"delete","value":"A"},{"op":"keep","value":"B"},{"op":"insert","value":"A"}]}'

The machine-readable contract is at /v1/tools/sequence-apply-edit-script/versions/1.0.0.

CLI

node cli.mjs run sequence-apply-edit-script 1.0.0 --input input.json --base-url https://computefirst.net

Get the client at /clients/cli/.