{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/agentpay-tools/json-schema/agentpay-tools-plan-estimate-request-schema.json",
  "title": "PlanEstimateRequest",
  "x-generated": "2026-11-01",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/agentpay-tools-openapi.json#/components/schemas/PlanEstimateRequest",
  "properties": {
    "steps": {
      "items": {
        "$ref": "#/$defs/PlanStep"
      },
      "type": "array",
      "maxItems": 100,
      "title": "Steps"
    },
    "budget": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Budget"
    }
  },
  "type": "object",
  "required": [
    "steps"
  ],
  "$defs": {
    "PlanStep": {
      "properties": {
        "tool": {
          "type": "string",
          "title": "Tool"
        },
        "params": {
          "type": "object",
          "title": "Params"
        }
      },
      "type": "object",
      "required": [
        "tool"
      ],
      "title": "PlanStep"
    }
  }
}