{
  "type": "object",
  "properties": {
    "document_type": {
      "type": "string",
      "minLength": 1
    },
    "country": {
      "type": "string",
      "pattern": "^[A-Za-z]{2}$"
    },
    "language": {
      "type": "string",
      "minLength": 2,
      "maxLength": 5
    },
    "answers": {
      "type": "object",
      "additionalProperties": {},
      "description": "Answers keyed by field id, exactly as returned by get_requirements"
    }
  },
  "required": [
    "document_type",
    "country",
    "answers"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://artifacts.apis.io/captain-legal/json-schema/captain-legal-generate-document-input-schema.json",
  "title": "Generate document preview input",
  "description": "Generate a draft of the document from the user's answers. Returns a free watermarked PDF preview and the exact price. Validates all answers against the encoded national rules first \u2014 if validation fails, you get structured errors to relay to the user. Also returns what is NOT covered by the automate",
  "x-source": "MCP tools/list inputSchema from https://mcp.captain.legal/connect/ (2026-11-03), verbatim apart from $id/$schema/title/description"
}