# recording.set_click_highlight

> Highlights the clicks of a screen take.

Source: https://stuarty.com/docs/mcp/tools/edit/recording.set_click_highlight/

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

| Argument | Type | Required | Notes |
| --- | --- | --- | --- |
| `color` | `string` | no | A colour; default #FFC400. |
| `duration_ms` | `integer` | no | How long one highlight lasts, 200 to 2000 ms. Default 600.; min 200; max 2000 |
| `item_id` | `string` | yes | A clip of a screen recording.; pattern `^itm_[0123456789abcdefghjkmnpqrstvwxyz]{10}$` |
| `size` | `number` | no | Pixels of the frame, 16 to 400. Default a twelfth of the frame height.; min 16; max 400 |
| `style` | `ring`, `wave`, `pulse`, `none` | no | Ring (default), wave, pulse, or none to remove the highlights. |

## Errors

- [`E_VALIDATION`](/docs/reference/error-codes#e_validation)
- [`E_NOT_FOUND`](/docs/reference/error-codes#e_not_found)
- [`E_TYPE_MISMATCH`](/docs/reference/error-codes#e_type_mismatch)
- [`E_INVALID_STATE`](/docs/reference/error-codes#e_invalid_state)
- [`E_LIMIT`](/docs/reference/error-codes#e_limit)

## 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`](/docs/mcp/tools/command_help) tool.

## Next steps

- [The edit tool](/docs/mcp/tools/edit)
- [Batches, revisions and idempotency](/docs/agents/batches)

**As an MCP call**

```json
{
  "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**

```json
[
  {
    "op": "recording.set_click_highlight",
    "args": {
      "color": "#33CCFF",
      "item_id": "itm_m1n2p3q4r5",
      "style": "wave"
    }
  }
]
```

```bash
stuarty edit --project prj_7k2m9x4q1b --ops batch.json --json
```

**Over HTTP**

```bash
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`.
