What's NewPlatform & API

October 16, 2026

Session metadata on every tool call, including the caller's number on phone calls

Session metadata on every tool call

Implicit tool calls and explicit HTTP tool calls now include a metadata object with the session's context — the same tags, external_client_id, and external_client_profile that WebSocket tools already receive in their initialize message. Use it to tie a tool call to your own user, tenant, or account.

{
  "event": "function_implicitly_called",
  "data": {
    "item_id": "item_001",
    "call_id": "call_abc123",
    "name": "get_order_status",
    "arguments": {
      "order_id": "ORD-7890"
    },
    "metadata": {
      "tags": {
        "plan": "premium"
      },
      "external_client_id": "user_12345",
      "external_client_profile": {
        "name": "Jane"
      }
    }
  }
}

HTTP tools receive the same fields in the request body. The new metadata field is additive; existing tool handlers keep working.

See Executing Tools — Session metadata.

The caller's number on phone calls

On SIP and VoIP calls, every tool call now carries the phone number on the other end of the call in metadata.external_client_id — the caller on an inbound call, or the dialed number on an outbound SIP call.

On this page