{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/axiorank-com/json-schema/axiorank-com-tool-call-request-schema.json",
  "title": "ToolCallRequest",
  "x-generated": "2026-11-02",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/axiorank-com-openapi.json#/components/schemas/ToolCallRequest",
  "type": "object",
  "properties": {
    "tool": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200
    },
    "arguments": {
      "default": {},
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {}
    },
    "phase": {
      "default": "request",
      "type": "string",
      "enum": [
        "request",
        "result",
        "prompt",
        "completion"
      ]
    },
    "resultText": {
      "type": "string",
      "maxLength": 200000
    },
    "promptText": {
      "type": "string",
      "maxLength": 200000
    },
    "completionText": {
      "type": "string",
      "maxLength": 200000
    },
    "context": {
      "type": "string",
      "maxLength": 200000
    },
    "costUsd": {
      "type": "number",
      "minimum": 0,
      "maximum": 1000000
    },
    "model": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200
    },
    "inputTokens": {
      "type": "integer",
      "minimum": 0,
      "maximum": 100000000
    },
    "outputTokens": {
      "type": "integer",
      "minimum": 0,
      "maximum": 100000000
    },
    "durationMs": {
      "type": "integer",
      "minimum": 0,
      "maximum": 86400000
    },
    "intent": {
      "type": "string",
      "minLength": 1,
      "maxLength": 1000
    },
    "taintHandle": {
      "type": "string",
      "maxLength": 16384
    },
    "passport": {
      "type": "boolean"
    },
    "source": {
      "type": "string",
      "enum": [
        "sdk",
        "mcp",
        "coding-agent",
        "browser-agent"
      ]
    },
    "traceId": {
      "type": "string",
      "format": "uuid",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    },
    "stepIndex": {
      "type": "integer",
      "minimum": 0,
      "maximum": 100000
    },
    "sessionId": {
      "type": "string",
      "format": "uuid",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    },
    "metadata": {
      "type": "object",
      "propertyNames": {
        "type": "string",
        "minLength": 1,
        "maxLength": 64
      },
      "additionalProperties": {
        "anyOf": [
          {
            "type": "string",
            "maxLength": 256
          },
          {
            "type": "number"
          },
          {
            "type": "boolean"
          }
        ]
      }
    },
    "parentStepIndex": {
      "type": "integer",
      "minimum": 0,
      "maximum": 100000
    }
  },
  "required": [
    "tool"
  ]
}