Skip to content

MCP: edit operations

recording.set_click_highlight

Highlights the clicks of a screen take.

Last updated:

Marks each click of the recording of the clip's asset with a short effect, a shape item on a Click highlight track above the clip: style ring (a ring that fades), wave (a ring that grows while it fades) or pulse (a disc that shrinks while it fades); none removes the highlights. Each lasts duration_ms and is cut short by the next click. It is placed through the zoom and position the clip has when the command runs, so run it after recording.auto_zoom and again after changing the zoom or moving the clip; each run replaces the highlights of the clip. The clicks come from the pointer events of the recording and are supplied by the service in resolved. The same clicks and options always give the same items.

Arguments#

ArgumentTypeRequiredNotes
colorstringnoA colour; default #FFC400.
duration_msintegernoHow long one highlight lasts, 200 to 2000 ms. Default 600.; min 200; max 2000
item_idstringyesA clip of a screen recording.; pattern ^itm_[0123456789abcdefghjkmnpqrstvwxyz]{10}$
sizenumbernoPixels of the frame, 16 to 400. Default a twelfth of the frame height.; min 16; max 400
stylering, wave, pulse, nonenoRing (default), wave, pulse, or none to remove the highlights.

Errors#

Scope#

Scope edit. The scope is the one an API key needs in network mode. Run stuarty command:help recording.set_click_highlight 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": "recording.set_click_highlight",
          "args": {
            "color": "#33CCFF",
            "item_id": "itm_m1n2p3q4r5",
            "style": "wave"
          }
        }
      ]
    }
  }
}

As a batch file for the CLI

batch.json
[
  {
    "op": "recording.set_click_highlight",
    "args": {
      "color": "#33CCFF",
      "item_id": "itm_m1n2p3q4r5",
      "style": "wave"
    }
  }
]
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": "recording.set_click_highlight",
      "args": {
        "color": "#33CCFF",
        "item_id": "itm_m1n2p3q4r5",
        "style": "wave"
      }
    }
  ]
}'

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