Create run event token

Issue a nondelegating event-writer credential for a direct child run.

Arguments

  • run_idstring · uuidrequired

    Nonterminal direct child of the credential-bound run. Requires a runtime credential allowed to delegate under the current execution generation or executor lease. 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. Modern tokens cannot mint event tokens. Tokens issued under an execution or worker generation retain that generation. For executor-lease-only parent credentials, the lease is checked at issuance; the child token does not retain executorLeaseOwner. Only the retained legacy route preserves nested delegation for delegating generation-bound credentials. It cannot read events, finalize, heartbeat or create children.

Responses

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__create_run_event_token",    "arguments": {      "run_id": "00000000-0000-0000-0000-000000000000"    }  }}'
{  "jsonrpc": "2.0",  "id": 1,  "result": {    "content": [      {        "type": "text",        "text": "{\"token\":\"string\",\"token_type\":\"Bearer\",\"expires_at\":\"2026-01-01T00:00:00Z\",\"run_id\":\"00000000-0000-0000-0000-000000000000\",\"permissions\":[\"run.events.append\"]}"      }    ],    "structuredContent": {      "token": "string",      "token_type": "Bearer",      "expires_at": "2026-01-01T00:00:00Z",      "run_id": "00000000-0000-0000-0000-000000000000",      "permissions": [        "run.events.append"      ]    }  }}

The tool ran; its output is result.structuredContent.