{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://courtahead.com/schemas/free-tools.schema.json",
  "title": "CourtAhead free tool browser actions",
  "description": "Inputs stage the same visible result as the free tools, using computation in the browser. No filing, payment, document upload, or account write occurs. Separate Sentry diagnostics, session replay and feedback can include information displayed or entered on the page; see https://courtahead.com/privacy. A browser agent invoking an action may process the input and result under that agent's own privacy terms.",
  "type": "object",
  "$defs": {
    "identifyPapersInput": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "formNumbers": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "FL-100",
              "FL-110",
              "FL-105",
              "FL-115",
              "FL-120",
              "FL-140",
              "FL-141",
              "FL-142",
              "FL-150",
              "FL-160",
              "FL-300",
              "FL-320",
              "FL-335"
            ]
          },
          "uniqueItems": true,
          "maxItems": 13
        }
      },
      "required": [
        "formNumbers"
      ]
    },
    "findCourtInput": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "county": {
          "type": "string",
          "enum": [
            "Alameda",
            "Alpine",
            "Amador",
            "Butte",
            "Calaveras",
            "Colusa",
            "Contra Costa",
            "Del Norte",
            "El Dorado",
            "Fresno",
            "Glenn",
            "Humboldt",
            "Imperial",
            "Inyo",
            "Kern",
            "Kings",
            "Lake",
            "Lassen",
            "Los Angeles",
            "Madera",
            "Marin",
            "Mariposa",
            "Mendocino",
            "Merced",
            "Modoc",
            "Mono",
            "Monterey",
            "Napa",
            "Nevada",
            "Orange",
            "Placer",
            "Plumas",
            "Riverside",
            "Sacramento",
            "San Benito",
            "San Bernardino",
            "San Diego",
            "San Francisco",
            "San Joaquin",
            "San Luis Obispo",
            "San Mateo",
            "Santa Barbara",
            "Santa Clara",
            "Santa Cruz",
            "Shasta",
            "Sierra",
            "Siskiyou",
            "Solano",
            "Sonoma",
            "Stanislaus",
            "Sutter",
            "Tehama",
            "Trinity",
            "Tulare",
            "Tuolumne",
            "Ventura",
            "Yolo",
            "Yuba"
          ]
        }
      },
      "required": [
        "county"
      ]
    },
    "decodeRejectionInput": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "method": {
          "type": "string",
          "enum": [
            "electronic",
            "paper",
            "unknown"
          ]
        },
        "reason": {
          "type": "string",
          "enum": [
            "case-data",
            "signature",
            "packet",
            "fee",
            "form-version",
            "pdf",
            "proposed-order",
            "service",
            "unclear"
          ]
        },
        "urgent": {
          "type": "boolean"
        }
      },
      "required": [
        "reason"
      ]
    },
    "checkDisclosuresInput": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "perspective": {
          "type": "string",
          "enum": [
            "preparing",
            "received",
            "status"
          ]
        },
        "items": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "fl140": {
              "type": "string",
              "enum": [
                "have",
                "locate",
                "verify"
              ]
            },
            "fl150": {
              "type": "string",
              "enum": [
                "have",
                "locate",
                "verify"
              ]
            },
            "property-schedule": {
              "type": "string",
              "enum": [
                "have",
                "locate",
                "verify"
              ]
            },
            "tax-returns": {
              "type": "string",
              "enum": [
                "have",
                "locate",
                "verify"
              ]
            },
            "income-proof": {
              "type": "string",
              "enum": [
                "have",
                "locate",
                "verify"
              ]
            },
            "ownership-debt": {
              "type": "string",
              "enum": [
                "have",
                "locate",
                "verify"
              ]
            },
            "retirement": {
              "type": "string",
              "enum": [
                "have",
                "locate",
                "verify",
                "na"
              ]
            },
            "real-property": {
              "type": "string",
              "enum": [
                "have",
                "locate",
                "verify",
                "na"
              ]
            },
            "business": {
              "type": "string",
              "enum": [
                "have",
                "locate",
                "verify",
                "na"
              ]
            },
            "other-income": {
              "type": "string",
              "enum": [
                "have",
                "locate",
                "verify",
                "na"
              ]
            },
            "exchange-record": {
              "type": "string",
              "enum": [
                "have",
                "locate",
                "verify"
              ]
            },
            "fl141-record": {
              "type": "string",
              "enum": [
                "have",
                "locate",
                "verify"
              ]
            }
          },
          "required": []
        }
      },
      "required": [
        "perspective",
        "items"
      ]
    },
    "buildTimelineInput": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "dates": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "separation": {
              "type": "string",
              "format": "date"
            },
            "petition-filed": {
              "type": "string",
              "format": "date"
            },
            "petition-served": {
              "type": "string",
              "format": "date"
            },
            "response-filed": {
              "type": "string",
              "format": "date"
            },
            "petitioner-disclosures": {
              "type": "string",
              "format": "date"
            },
            "respondent-disclosures": {
              "type": "string",
              "format": "date"
            },
            "rfo-filed": {
              "type": "string",
              "format": "date"
            },
            "rfo-hearing": {
              "type": "string",
              "format": "date"
            },
            "rfo-order": {
              "type": "string",
              "format": "date"
            },
            "agreement-signed": {
              "type": "string",
              "format": "date"
            },
            "trial-held": {
              "type": "string",
              "format": "date"
            },
            "judgment-submitted": {
              "type": "string",
              "format": "date"
            },
            "judgment-filed": {
              "type": "string",
              "format": "date"
            },
            "notice-entry": {
              "type": "string",
              "format": "date"
            }
          },
          "required": []
        },
        "custom": {
          "type": "array",
          "maxItems": 2,
          "items": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "label": {
                "type": "string",
                "maxLength": 80
              },
              "date": {
                "type": "string",
                "format": "date"
              }
            },
            "required": [
              "label",
              "date"
            ]
          }
        }
      },
      "required": [
        "dates"
      ]
    },
    "inventoryDocumentsInput": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "tracks": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "start",
              "financial",
              "rfo",
              "custody",
              "evidence",
              "judgment"
            ]
          },
          "uniqueItems": true,
          "maxItems": 6
        }
      },
      "required": [
        "tracks"
      ]
    },
    "prepareHearingInput": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "topics": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "rfo",
              "custody",
              "evidence",
              "remote",
              "interpreter",
              "accommodation",
              "safety"
            ]
          },
          "uniqueItems": true,
          "maxItems": 7
        }
      },
      "required": [
        "topics"
      ]
    },
    "buildCaseSummaryInput": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "meeting": {
          "type": "string",
          "enum": [
            "self-help",
            "lawyer"
          ]
        },
        "fields": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "county": {
              "type": "string",
              "maxLength": 80
            },
            "case-number": {
              "type": "string",
              "maxLength": 60
            },
            "role": {
              "type": "string",
              "enum": [
                "Petitioner",
                "Respondent",
                "Other party or participant",
                "Not sure"
              ]
            },
            "next-event": {
              "type": "string",
              "maxLength": 120
            },
            "situation": {
              "type": "string",
              "maxLength": 900
            },
            "questions": {
              "type": "string",
              "maxLength": 900
            }
          },
          "required": []
        },
        "issues": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "custody",
              "child-support",
              "spousal-support",
              "property",
              "disclosures",
              "safety",
              "filing",
              "hearing",
              "orders",
              "other"
            ]
          },
          "uniqueItems": true,
          "maxItems": 10
        },
        "help": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "consult",
              "documents",
              "hearing",
              "appearance",
              "evidence",
              "scope"
            ]
          },
          "uniqueItems": true,
          "maxItems": 6
        }
      },
      "required": [
        "meeting"
      ]
    },
    "toolResult": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "status": {
          "const": "updated"
        },
        "summary": {
          "type": "string",
          "maxLength": 8000
        },
        "links": {
          "type": "array",
          "maxItems": 15,
          "items": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "text": {
                "type": "string",
                "maxLength": 160
              },
              "url": {
                "type": "string",
                "maxLength": 500
              }
            },
            "required": [
              "text",
              "url"
            ]
          }
        }
      },
      "required": [
        "status",
        "summary",
        "links"
      ]
    }
  }
}
