> ## Documentation Index
> Fetch the complete documentation index at: https://veryfront.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Create run event token

> Issue a short-lived credential that appends events to a direct child run.

`veryfront__create_run_event_token`

## Access

No external-service connection is required. Use a Veryfront credential with access to the requested resources.

**Call type:** Can read or manage credentials.

## Arguments

| Field | Type | Required | Description and constraints |
| - | - | - | - |
| `run_id` | `string` | Yes | Nonterminal direct child of the credential-bound run. Requires a runtime credential allowed to delegate under the current execution generation. Unrelated runs are hidden as not found (404); a terminal parent or child, stale generation, authentication-parked child, or detached child generation returns 409. The resulting event-writer token is bound to this child run. Format: `uuid`. |

## Example request

Send this JSON-RPC request through an initialized MCP client. Replace sample identifiers and values before calling the tool. See [MCP client setup](https://veryfront.com/docs/cloud/getting-started/connect-mcp.md).

```json title="request.json" theme={null}
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "veryfront__create_run_event_token",
    "arguments": {
      "run_id": "00000000-0000-4000-8000-000000000000"
    }
  }
}
```

## Result

The published output shape is summarized below. Inspect both the MCP response content and `isError` when handling a call.

| Field | Type | Required | Description and constraints |
| - | - | - | - |
| `token` | `string` | Yes | The token returned by the tool. Minimum length: `1`. |
| `token_type` | `string` | Yes | The token type returned by the tool. Values: `"Bearer"`. |
| `expires_at` | `string` | Yes | The expires at returned by the tool. Format: `date-time`. |
| `run_id` | `string` | Yes | Run identifier associated with this result. Format: `uuid`. |
| `permissions` | `string[]` | Yes | List of permissions returned by the tool. |

## Full schemas

```json title="input-schema.json" theme={null}
{
  "type": "object",
  "properties": {
    "run_id": {
      "type": "string",
      "format": "uuid",
      "description": "Nonterminal direct child of the credential-bound run. Requires a runtime credential allowed to delegate under the current execution generation. Unrelated runs are hidden as not found (404); a terminal parent or child, stale generation, authentication-parked child, or detached child generation returns 409. The resulting event-writer token is bound to this child run."
    }
  },
  "required": [
    "run_id"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#",
  "description": "Arguments for the create_run_event_token tool."
}
```

```json title="output-schema.json" theme={null}
{
  "type": "object",
  "properties": {
    "token": {
      "type": "string",
      "minLength": 1,
      "description": "The token returned by the tool."
    },
    "token_type": {
      "type": "string",
      "enum": [
        "Bearer"
      ],
      "description": "The token type returned by the tool."
    },
    "expires_at": {
      "type": "string",
      "format": "date-time",
      "description": "The expires at returned by the tool."
    },
    "run_id": {
      "type": "string",
      "format": "uuid",
      "description": "Run identifier associated with this result."
    },
    "permissions": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "run.events.append"
        ],
        "description": "One permission item returned by the tool."
      },
      "minItems": 1,
      "maxItems": 1,
      "description": "List of permissions returned by the tool."
    }
  },
  "required": [
    "token",
    "token_type",
    "expires_at",
    "run_id",
    "permissions"
  ],
  "additionalProperties": false,
  "description": "A short-lived event-append credential for the target child run; never grants finalization, heartbeat, or child creation.",
  "$schema": "http://json-schema.org/draft-07/schema#"
}
```

<details>
  <summary>Try this tool</summary>

  Replace sample arguments with values for your project or connected account. Calls run only when you select Run tool.

  MCP tool call

  Call `veryfront__create_run_event_token` against the Veryfront MCP endpoint.

  Bearer token or API key

  Arguments (JSON)

  Run this tool with these arguments.

  Run tool

  Output JSON

  <pre />
</details>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.