# Append run events

Tool: `veryfront__append_run_events`

Append run events.

## Arguments

| Name              | Type                                   | Required | Description                                                                                                                                                                                                                                                  |
| ----------------- | -------------------------------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `run_id`          | string · uuid                          | Yes      | Run identifier that scopes the request.                                                                                                                                                                                                                      |
| `input`           | object                                 | Yes      | Structured input details used by the tool.                                                                                                                                                                                                                   |
| `idempotency_key` | string · min length 1 · max length 128 |          | Retry key, 1–128 characters; overrides the HTTP Idempotency-Key header. Required for Task and Workflow event appends unless supplied in the header. No key is synthesized when both are omitted; Agent appends use their event sequence and cursor contract. |

## Responses

| Status | Description                                           |
| ------ | ----------------------------------------------------- |
| 200    | The tool ran; its output is result.structuredContent. |

## Call it

```bash
curl -X POST -N "https://api.veryfront.com/mcp" \
  -H "Authorization: Bearer $VERYFRONT_API_KEY" \
  -H "Accept: application/json, text/event-stream" \
  -H "Content-Type: application/json" \
  -d '{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "veryfront__append_run_events",
    "arguments": {
      "run_id": "00000000-0000-0000-0000-000000000000",
      "input": {
        "events": [
          {
            "type": "string"
          }
        ]
      }
    }
  }
}'
```

## Example response

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "content": [
      {
        "type": "text",
        "text": "{\"latest_event_id\":0,\"latest_external_event_sequence\":0,\"appended_count\":0,\"acknowledged_event_ids\":[1],\"recovery_checkpoint\":{\"snapshot_event_id\":1,\"snapshot_external_sequence\":1,\"checkpoint_event_id\":1},\"run_id\":\"00000000-0000-0000-0000-000000000000\",\"model_call_captures\":[{\"event_id\":\"string\",\"model_call_id\":\"00000000-0000-0000-0000-000000000000\",\"run_id\":\"00000000-0000-0000-0000-000000000000\",\"project_id\":\"00000000-0000-0000-0000-000000000000\"}],\"tool_call_admissions\":[{\"occurrence_id\":\"00000000-0000-0000-0000-000000000000\",\"admission_event_id\":\"1\",\"start_event_id\":\"1\",\"tool_call_id\":\"string\",\"public_tool_call_id\":\"string\",\"run_id\":\"00000000-0000-0000-0000-000000000000\",\"project_id\":\"00000000-0000-0000-0000-000000000000\"}]}"
      }
    ],
    "structuredContent": {
      "latest_event_id": 0,
      "latest_external_event_sequence": 0,
      "appended_count": 0,
      "acknowledged_event_ids": [1],
      "recovery_checkpoint": {
        "snapshot_event_id": 1,
        "snapshot_external_sequence": 1,
        "checkpoint_event_id": 1
      },
      "run_id": "00000000-0000-0000-0000-000000000000",
      "model_call_captures": [
        {
          "event_id": "string",
          "model_call_id": "00000000-0000-0000-0000-000000000000",
          "run_id": "00000000-0000-0000-0000-000000000000",
          "project_id": "00000000-0000-0000-0000-000000000000"
        }
      ],
      "tool_call_admissions": [
        {
          "occurrence_id": "00000000-0000-0000-0000-000000000000",
          "admission_event_id": "1",
          "start_event_id": "1",
          "tool_call_id": "string",
          "public_tool_call_id": "string",
          "run_id": "00000000-0000-0000-0000-000000000000",
          "project_id": "00000000-0000-0000-0000-000000000000"
        }
      ]
    }
  }
}
```
