Vapi · Schema

ToolCall

AIVoiceAgentsRealtimeCPaaS

Properties

Name Type Description
id string This is the ID of the tool call
type string This is the type of tool
function object This is the function that was called
View JSON Schema on GitHub

JSON Schema

vapi-toolcall-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/ToolCall",
  "title": "ToolCall",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "This is the ID of the tool call"
    },
    "type": {
      "type": "string",
      "description": "This is the type of tool"
    },
    "function": {
      "description": "This is the function that was called",
      "allOf": [
        {
          "$ref": "#/components/schemas/ToolCallFunction"
        }
      ]
    }
  },
  "required": [
    "id",
    "type",
    "function"
  ]
}