{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/agentstack-tech/json-schema/agentstack-tech-from-template-body-schema.json",
  "title": "FromTemplateBody",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/agentstack-tech-agents-fleet-api-openapi.yml#/components/schemas/FromTemplateBody",
  "properties": {
    "template_id": {
      "type": "string",
      "title": "Template Id"
    },
    "name": {
      "type": "string",
      "title": "Name",
      "default": "Agent"
    },
    "description": {
      "type": "string",
      "title": "Description",
      "default": ""
    },
    "template_input": {
      "additionalProperties": true,
      "type": "object",
      "title": "Template Input"
    },
    "node_id": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 64
        },
        {
          "type": "null"
        }
      ],
      "title": "Node Id",
      "description": "Optional plan leaf id (from work_next.blocked_work) to bind agent_id after provision."
    },
    "env_uuid": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 64
        },
        {
          "type": "null"
        }
      ],
      "title": "Env Uuid"
    },
    "home": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 32
        },
        {
          "type": "null"
        }
      ],
      "title": "Home",
      "description": "Plan graph home for optional node_id bind (project|self|project_self)."
    }
  },
  "type": "object",
  "required": [
    "template_id"
  ]
}