{
  "openapi": "3.1.1",
  "info": {
    "title": "Lessonleaf API",
    "version": "1.0.0",
    "summary": "Deterministic tools for people and AI agents.",
    "description": "Every endpoint performs the same calculation as the human page and returns inputs, result, units, assumptions, sources, warnings and computedAt. MCP endpoint: /mcp."
  },
  "servers": [
    {
      "url": "https://lessonleaf.usefulweb.site"
    }
  ],
  "paths": {
    "/api/v1/tools": {
      "get": {
        "operationId": "listTools",
        "summary": "Catalog of all tools",
        "responses": {
          "200": {
            "description": "Tool list.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/{id}": {
      "get": {
        "operationId": "getTool",
        "summary": "Definition of one tool",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "lessonleaf-outline-cards",
                "deckwright-cards-from-markdown",
                "deckwright-review-schedule",
                "deckwright-print-cards",
                "knotwork-wikilink-map",
                "knotwork-link-suggestions",
                "exam-study-planner",
                "highlights-to-flashcards",
                "flashcard-format-converter",
                "cloze-card-maker"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Tool definition.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "404": {
            "description": "Invalid input (see errors[]).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/lessonleaf-outline-cards/calculate": {
      "post": {
        "operationId": "calculateLessonleafOutlineCards",
        "summary": "Turn an indented Markdown outline with term :: definition lines into flashcards, CSV and Anki text.",
        "description": "Reads study notes written as an outline (nested “- ” lists, headings, paragraphs) and finds the flashcards written inside them: “term :: definition” lines, “:::” for cards in both directions, {{c1::cloze}} gaps, and “question ::” lines whose indented sub-points are the answer (list answers). Each card keeps its place in the outline (the parent points become its context) and the tags from #tags and the front matter. Returns the cards, a card CSV, an Anki “Notes in Plain Text” file and a link that opens the notes in Lessonleaf.\n\nMethodology:\n- The outline is read like CommonMark lists: every list item, heading and paragraph becomes one block; deeper indentation makes a sub-point; headings hold the blocks under them; a line indented under a point continues it.\n- Each block is turned into Deckwright card text and read by Deckwright’s card parser: “front :: back” makes one card, “front ::: back” two (both directions), {{cN::answer}} or {{cN::answer::hint}} one cloze card per number. A block that ends with “::” (or “:::”) takes its indented sub-points as the answer, written as a list.\n- Card ids are the block id plus b (front → back), r (back → front) or cN (cloze number), so in Lessonleaf editing a card keeps its review history. Tags are the front-matter tags plus the #tags of the block and of the points above it; [[links]] keep their text and ((references)) are replaced by the referenced point.\n- The CSV has the columns front, back, tag, id (tag = the note’s title; one row per cloze note; two-way cards once). The Anki file is “Notes in Plain Text” with tabs, #html:false and the tags in column 3; two-way cards become two notes there.\n\nPictures and formatting other than plain Markdown text are not carried into the cards. The Anki file is plain text; import it into a Basic note type (cloze lines into a Cloze note type).",
        "tags": [
          "apps"
        ],
        "x-mcp-tool": "lessonleaf_outline_cards",
        "x-owner-app": "lessonleaf",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LessonleafOutlineCardsInput"
              },
              "examples": {
                "example1": {
                  "summary": "Biology outline with list answers, a two-way card and cloze gaps",
                  "value": {
                    "text": "---\ntitle: Cell biology\ntags: [biology]\n---\n- Organelles\n  - Nucleus :: holds the cell's DNA\n  - Mitochondria :: make ATP by cellular respiration #exam\n- Parts of every cell ::\n  - cell membrane\n  - cytoplasm\n  - ribosomes\n- Aerobic respiration ::: respiration that needs oxygen\n- The {{c1::cell membrane}} controls what enters the cell; plants also have a {{c2::cell wall}}.\n- Chloroplasts are only found in plant cells (a note, not a card).\n"
                  }
                },
                "example2": {
                  "summary": "Vocabulary under headings (two-way cards)",
                  "value": {
                    "text": "# Spanish greetings\n\n- hola ::: hello\n- gracias ::: thank you\n- buenos días ::: good morning #a1\n"
                  }
                },
                "example3": {
                  "summary": "History dates as cloze cards with context",
                  "value": {
                    "text": "- First World War\n  - It began in {{c1::1914}} and ended in {{c2::1918}}.\n  - Causes ::\n    - militarism\n    - alliances\n    - imperialism\n    - nationalism\n"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Calculation result envelope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LessonleafOutlineCardsResult"
                }
              }
            }
          },
          "400": {
            "description": "Malformed JSON body.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "422": {
            "description": "Invalid input (see errors[]).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded (see Retry-After).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/deckwright-cards-from-markdown/calculate": {
      "post": {
        "operationId": "calculateDeckwrightCardsFromMarkdown",
        "summary": "Turn notes into flashcards: Q:/A: pairs, term :: definition lines, cloze gaps, CSV or Anki text.",
        "description": "Reads study notes and makes flashcards with stable ids: Markdown “Q:”/“A:” pairs, “term :: definition” lines (“:::” adds the reverse card), {{c1::cloze}} gaps with optional hints (one card per gap number, like Anki), # headings as tags, CSV or tab-separated rows, an Anki “Notes in Plain Text” export (HTML turned into text) or a Deckwright slide deck (slide titles become questions). Returns the cards, a CSV file, the cards as editable Markdown and a link that opens them in Deckwright’s Study view.\n\nMethodology:\n- Markdown: a line “Q:” starts a question, “A:” its answer (several lines; a blank line ends the card). “front :: back” lines make one card, “front ::: back” two (both directions). Paragraphs with {{cN::answer}} or {{cN::answer::hint}} make one cloze card per number N: that gap shows […] or [hint], the other gaps show their text. # headings tag the cards below them.\n- CSV and TSV follow RFC 4180 (quoted fields may hold commas, tabs and line breaks); a first row named front/back, question/answer or term/definition is a header, a third column or a column named tag becomes the tag. Anki text exports honour #separator, #html, #columns and the #notetype/#deck/#guid/#tags column headers; HTML line breaks are kept, bold and italic become Markdown, pictures become their file name.\n- A slide deck gives one card per content slide with a title: the title is the question, the slide text (lists, tables, quotes, chart and diagram descriptions) the answer; # section slides tag the cards after them; speaker notes stay out.\n- Card ids are “b-”, “r-” (reverse) or “cN-” (cloze) plus the FNV-1a hash of the question (of the full sentence for cloze cards), so editing an answer keeps the card’s review history; repeated questions get -2, -3 ….\n\nAnki .apkg packages (SQLite) are not read; export the notes from Anki as “Notes in Plain Text” instead. Pictures inside an Anki text export cannot be carried over.",
        "tags": [
          "apps"
        ],
        "x-mcp-tool": "deckwright_cards_from_markdown",
        "x-owner-app": "deckwright",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DeckwrightCardsFromMarkdownInput"
              },
              "examples": {
                "example1": {
                  "summary": "Spanish phrases with reverse cards and two cloze gaps",
                  "value": {
                    "text": "# Greetings\nhola ::: hello\nbuenos días ::: good morning\ngracias ::: thank you\n\n# Getting around\nQ: How do you ask where the station is?\nA: ¿Dónde está la estación?\n\nla estación :: the station\nel billete :: the ticket\n\n# At the café\nun café con leche :: a coffee with milk\n\nQ: How do you ask for the bill?\nA: la cuenta, por favor\n\nMadrid's main station is {{c1::Atocha}}; the fast train to Barcelona takes about {{c2::two and a half::how long?}} hours.\n",
                    "lang": "es"
                  }
                },
                "example2": {
                  "summary": "Cards from a lesson deck (slide titles become questions)",
                  "value": {
                    "text": "---\ntitle: How plants make food\nlang: en\ntheme: harbor\nfooter: Biology · lesson 4\n---\n\n# How plants make food\n\nPhotosynthesis in five slides\n\n---\n\n## The idea in one sentence\n\n\u003e Plants use the energy of light to turn carbon dioxide and water into sugar and oxygen.\n\n---\n\n## What goes in, what comes out\n\n| In | Out |\n|---|---|\n| Carbon dioxide from the air | Sugar (glucose) |\n| Water from the roots | Oxygen |\n| Light energy | |\n\n6 CO₂ + 6 H₂O + light gives C₆H₁₂O₆ + 6 O₂\n\n---\n\n## Where it happens\n\n```mermaid\n%% alt: Photosynthesis happens in the leaf (chloroplasts, stomata) in two stages: light reactions split water and release oxygen; the Calvin cycle fixes carbon dioxide into sugar.\nmindmap\n  Photosynthesis\n    Leaf\n      Chloroplasts\n      Stomata\n    Light reactions\n      Split water\n      Release oxygen\n    Calvin cycle\n      Fix CO₂\n      Build sugar\n```\n\n---\n\n## Try it yourself\n\n- Put a water plant under a lamp\n- Count the oxygen bubbles per minute\n- Move the lamp closer and count again\n\nNotes:\nAsk the class to predict the result before moving the lamp.\n\n---\n\n## Bubbles and light\n\n```chart\ntype: line\ntitle: Bubbles per minute (example class data)\nx: Distance (cm)\ny: Bubbles\nalt: The closer the lamp, the more bubbles: from 4 per minute at 50 cm to 31 per minute at 10 cm.\n\nDistance (cm),Bubbles\n10,31\n20,19\n30,11\n40,7\n50,4\n```\n",
                    "format": "deck"
                  }
                },
                "example3": {
                  "summary": "CSV with a header row, both directions",
                  "value": {
                    "text": "front,back,tag\nH2O,water,chemistry\nNaCl,table salt,chemistry\nCO2,carbon dioxide,chemistry\n",
                    "format": "csv",
                    "reverse": true
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Calculation result envelope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeckwrightCardsFromMarkdownResult"
                }
              }
            }
          },
          "400": {
            "description": "Malformed JSON body.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "422": {
            "description": "Invalid input (see errors[]).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded (see Retry-After).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/deckwright-review-schedule/calculate": {
      "post": {
        "operationId": "calculateDeckwrightReviewSchedule",
        "summary": "Which flashcards are due today? FSRS-5 or SM-2 from your review log, with a 30-day forecast.",
        "description": "Replays a review log (date, card, rating again/hard/good/easy) through the FSRS-5 spaced-repetition model or the classic SM-2 algorithm and returns today’s queue (cards relearned today, due reviews, new cards up to your daily limit), the next interval for every answer, each card’s stability, difficulty and recall probability, a 30-day forecast and study statistics. The same scheduler runs Deckwright’s Study view.\n\nMethodology:\n- Card states are replayed from the log in date order. FSRS-5: first rating G sets stability S = w[G−1] and difficulty D = w4 − e^(w5(G−1)) + 1; later reviews use the recall probability R = (1 + 19/81 · t/S)^−0.5 after t days to grow S (Hard × w15, Easy × w16) or, after Again, to set the post-lapse stability; reviews on the same day use S·e^(w17(G−3+w18)); D moves by −w6(G−3) with linear damping and mean reversion to D0(Easy).\n- The next interval is the number of days until R falls to the desired retention: I = S/(19/81) · (r^(−2) − 1), rounded, at least 1 day. Again keeps the card in today’s queue until it is answered Hard or better.\n- SM-2: grades Again = 1, Hard = 3, Good = 4, Easy = 5; EF changes by 0.1 − (5−q)(0.08 + (5−q)·0.02) (at least 1.3); intervals 1, 6, then the previous interval × EF rounded up; a grade below 3 restarts the repetitions; grades below 4 repeat the card the same day.\n- Queue: cards answered Again today first, then due reviews (oldest due date first, up to the daily maximum), then new cards in their order in the set (up to the new-card limit minus the new cards already started today). True retention counts the first answer of each day for cards seen before, over the last 30 days.\n\nFSRS runs with its published default parameters (no optimisation on your own history) and day-level steps without random fuzz. Recall probabilities are model estimates.",
        "tags": [
          "apps"
        ],
        "x-mcp-tool": "deckwright_review_schedule",
        "x-owner-app": "deckwright",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DeckwrightReviewScheduleInput"
              },
              "examples": {
                "example1": {
                  "summary": "Spanish cards after one week (FSRS-5)",
                  "value": {
                    "text": "# Greetings\nhola ::: hello\nbuenos días ::: good morning\ngracias ::: thank you\n\n# Getting around\nQ: How do you ask where the station is?\nA: ¿Dónde está la estación?\n\nla estación :: the station\nel billete :: the ticket\n\n# At the café\nun café con leche :: a coffee with milk\n\nQ: How do you ask for the bill?\nA: la cuenta, por favor\n\nMadrid's main station is {{c1::Atocha}}; the fast train to Barcelona takes about {{c2::two and a half::how long?}} hours.\n",
                    "log": "date,card,rating\n2026-11-02,hola,good\n2026-11-02,buenos días,good\n2026-11-02,gracias,again\n2026-11-02,gracias,good\n2026-11-05,hola,good\n2026-11-05,gracias,hard\n2026-11-06,buenos días,easy\n2026-11-07,la estación,good\n",
                    "today": "2026-11-08"
                  }
                },
                "example2": {
                  "summary": "The same log with SM-2",
                  "value": {
                    "text": "# Greetings\nhola ::: hello\nbuenos días ::: good morning\ngracias ::: thank you\n\n# Getting around\nQ: How do you ask where the station is?\nA: ¿Dónde está la estación?\n\nla estación :: the station\nel billete :: the ticket\n\n# At the café\nun café con leche :: a coffee with milk\n\nQ: How do you ask for the bill?\nA: la cuenta, por favor\n\nMadrid's main station is {{c1::Atocha}}; the fast train to Barcelona takes about {{c2::two and a half::how long?}} hours.\n",
                    "log": "date,card,rating\n2026-11-02,hola,good\n2026-11-02,buenos días,good\n2026-11-02,gracias,again\n2026-11-02,gracias,good\n2026-11-05,hola,good\n2026-11-05,gracias,hard\n2026-11-06,buenos días,easy\n2026-11-07,la estación,good\n",
                    "today": "2026-11-08",
                    "scheduler": "sm2"
                  }
                },
                "example3": {
                  "summary": "Higher retention target (0.95), 5 new cards a day",
                  "value": {
                    "text": "# Greetings\nhola ::: hello\nbuenos días ::: good morning\ngracias ::: thank you\n\n# Getting around\nQ: How do you ask where the station is?\nA: ¿Dónde está la estación?\n\nla estación :: the station\nel billete :: the ticket\n\n# At the café\nun café con leche :: a coffee with milk\n\nQ: How do you ask for the bill?\nA: la cuenta, por favor\n\nMadrid's main station is {{c1::Atocha}}; the fast train to Barcelona takes about {{c2::two and a half::how long?}} hours.\n",
                    "log": "date,card,rating\n2026-11-02,hola,good\n2026-11-02,buenos días,good\n2026-11-02,gracias,again\n2026-11-02,gracias,good\n2026-11-05,hola,good\n2026-11-05,gracias,hard\n2026-11-06,buenos días,easy\n2026-11-07,la estación,good\n",
                    "today": "2026-11-08",
                    "retention": 0.95,
                    "newPerDay": 5
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Calculation result envelope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeckwrightReviewScheduleResult"
                }
              }
            }
          },
          "400": {
            "description": "Malformed JSON body.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "422": {
            "description": "Invalid input (see errors[]).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded (see Retry-After).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/deckwright-print-cards/calculate": {
      "post": {
        "operationId": "calculateDeckwrightPrintCards",
        "summary": "Print flashcards on both sides: questions on the front, answers exactly behind them, as a PDF.",
        "description": "Lays out flashcards on card or label sheets (business-card size 90 × 54 mm, 99 × 68 mm, 70 × 37 mm and US Letter 4 × 2 in, among others): questions on the front pages, answers on the back pages mirrored for long-edge or short-edge duplex printing, cut lines, registration crosses and a card number on both sides. Text shrinks to fit (down to 6 pt). Also prints questions only, or question and answer side by side for folding. Vector PDF with embedded fonts for Latin, Greek, Cyrillic, Arabic, Devanagari, Chinese, Japanese and Korean.\n\nMethodology:\n- Sheet geometry (paper, columns × rows, card size, margins, pitch) comes from Printshop’s label sheets. Fronts are on odd pages, backs on even pages. For a long-edge flip the back of the card in column c sits in column (columns − 1 − c), x′ = page width − x − card width; for a short-edge flip the rows are mirrored, y′ = page height − y − card height.\n- Text is shaped with embedded Noto fonts and wrapped like slide text (Chinese, Japanese and Korean by characters); it starts at the chosen size and shrinks in 8 % steps down to 6 pt. Cards that still do not fit are cut and listed. Pictures (data URLs) are placed above the text.\n- Reverse cards are not printed separately: a printed card already has the answer on its back.\n- Registration crosses sit 7 mm from each page corner on both sides; hold a printed sheet against the light to check that the printer keeps front and back aligned. Every card carries its number on both sides.\n\nPrinters shift the back side by up to a few millimetres; print one test sheet on plain paper first. Choose “actual size” (100 %) in the print dialog.",
        "tags": [
          "apps"
        ],
        "x-mcp-tool": "deckwright_print_cards",
        "x-owner-app": "deckwright",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DeckwrightPrintCardsInput"
              },
              "examples": {
                "example1": {
                  "summary": "Spanish phrases, business-card size, double-sided",
                  "value": {
                    "text": "# Greetings\nhola ::: hello\nbuenos días ::: good morning\ngracias ::: thank you\n\n# Getting around\nQ: How do you ask where the station is?\nA: ¿Dónde está la estación?\n\nla estación :: the station\nel billete :: the ticket\n\n# At the café\nun café con leche :: a coffee with milk\n\nQ: How do you ask for the bill?\nA: la cuenta, por favor\n\nMadrid's main station is {{c1::Atocha}}; the fast train to Barcelona takes about {{c2::two and a half::how long?}} hours.\n",
                    "lang": "es"
                  }
                },
                "example2": {
                  "summary": "Lesson cards from slides, 2 × 4 per A4, short-edge flip",
                  "value": {
                    "text": "---\ntitle: How plants make food\nlang: en\ntheme: harbor\nfooter: Biology · lesson 4\n---\n\n# How plants make food\n\nPhotosynthesis in five slides\n\n---\n\n## The idea in one sentence\n\n\u003e Plants use the energy of light to turn carbon dioxide and water into sugar and oxygen.\n\n---\n\n## What goes in, what comes out\n\n| In | Out |\n|---|---|\n| Carbon dioxide from the air | Sugar (glucose) |\n| Water from the roots | Oxygen |\n| Light energy | |\n\n6 CO₂ + 6 H₂O + light gives C₆H₁₂O₆ + 6 O₂\n\n---\n\n## Where it happens\n\n```mermaid\n%% alt: Photosynthesis happens in the leaf (chloroplasts, stomata) in two stages: light reactions split water and release oxygen; the Calvin cycle fixes carbon dioxide into sugar.\nmindmap\n  Photosynthesis\n    Leaf\n      Chloroplasts\n      Stomata\n    Light reactions\n      Split water\n      Release oxygen\n    Calvin cycle\n      Fix CO₂\n      Build sugar\n```\n\n---\n\n## Try it yourself\n\n- Put a water plant under a lamp\n- Count the oxygen bubbles per minute\n- Move the lamp closer and count again\n\nNotes:\nAsk the class to predict the result before moving the lamp.\n\n---\n\n## Bubbles and light\n\n```chart\ntype: line\ntitle: Bubbles per minute (example class data)\nx: Distance (cm)\ny: Bubbles\nalt: The closer the lamp, the more bubbles: from 4 per minute at 50 cm to 31 per minute at 10 cm.\n\nDistance (cm),Bubbles\n10,31\n20,19\n30,11\n40,7\n50,4\n```\n",
                    "format": "deck",
                    "sheet": "a4-2x4-99x68",
                    "flip": "short"
                  }
                },
                "example3": {
                  "summary": "Chemistry formulas on US Letter, side by side for folding",
                  "value": {
                    "text": "front,back\nH2O,water\nNaCl,table salt\nCO2,carbon dioxide\nNH3,ammonia\nCH4,methane\n",
                    "format": "csv",
                    "sheet": "letter-2x5",
                    "sides": "fold"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Calculation result envelope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeckwrightPrintCardsResult"
                }
              }
            }
          },
          "400": {
            "description": "Malformed JSON body.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "422": {
            "description": "Invalid input (see errors[]).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded (see Retry-After).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/knotwork-wikilink-map/calculate": {
      "post": {
        "operationId": "calculateKnotworkWikilinkMap",
        "summary": "Map the [[links]] between Markdown notes: broken links, orphan pages, hubs and mentions.",
        "description": "Paste Markdown notes that link to each other with [[Page title]] (also [[Page|label]], [[KEY:Page]] and links to other .md files) and @[Name] mentions. The map resolves every link by title, lists broken links to pages that do not exist, orphan pages that nothing links to and nothing links from, the most linked pages and who is mentioned where — with Wikinest’s Markdown reader, the same one Knotwork uses for wiki pages and imported notes.\n\nMethodology:\n- Each note is parsed with Wikinest’s Markdown reader: [[Title]], [[Title|label]], [[KEY:Title]] (the key is dropped when no note has it in its title) and [[Title#heading]] link to the note with that title, compared without case and extra spaces; Markdown links to “name.md” link to the note whose title or file name is “name”.\n- @[Name] mentions become person items. Links to web addresses are counted as external and not followed. Code blocks are not searched for links.\n- Broken links point to a title no note has. Orphans have no link in either direction. Hubs, groups and PageRank come from the knotwork-link-graph analysis.",
        "tags": [
          "apps"
        ],
        "x-mcp-tool": "knotwork_wikilink_map",
        "x-owner-app": "knotwork",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/KnotworkWikilinkMapInput"
              },
              "examples": {
                "example1": {
                  "summary": "Team wiki with a broken link and an orphan page",
                  "value": {
                    "notes": "=== Onboarding\nStart with [[Team handbook]] and [[Tools we use]]. Ask @[Ana Silva] for access.\n=== Team handbook\nHow we work: see [[Meeting rules]] and [[Release process]].\n=== Release process\nChecklist in [[Tools we use]]. Owner: @[Ben Okafor]. Old notes: [[Release 2025]].\n=== Tools we use\nIssue tracker, chat and the wiki. Back to [[Onboarding]].\n=== Meeting rules\nShort, with an agenda.\n=== Parking\nGarage on level -2."
                  }
                },
                "example2": {
                  "summary": "Notes with # headings and a link to another .md file",
                  "value": {
                    "notes": "# Ideas\nSee [[Reading list]] and [details](plans.md).\n# Reading list\nBack to [[Ideas]].\n# Plans\nNothing yet."
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Calculation result envelope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/KnotworkWikilinkMapResult"
                }
              }
            }
          },
          "400": {
            "description": "Malformed JSON body.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "422": {
            "description": "Invalid input (see errors[]).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded (see Retry-After).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/knotwork-link-suggestions/calculate": {
      "post": {
        "operationId": "calculateKnotworkLinkSuggestions",
        "summary": "Find notes that mention another note by name but do not link to it yet — and add the [[links]].",
        "description": "Paste Markdown notes and the finder lists every place where one note names another note (or one of your extra titles) without a [[link]]: which note, which title, the words as written, how often and a short context. Matching is by whole words, ignores case and accents, handles titles of several words, scripts without spaces such as Chinese or Thai and Korean particles, and skips titles that are too short or too common. You also get the notes back with the first mention of each suggestion turned into a [[link]] — the same engine as Knotwork’s “Suggested links”.\n\nMethodology:\n- Notes and titles are split into words and normalised the same way: Unicode NFKC, lower case, accents removed for Latin, Greek and Cyrillic letters (é → e, ß → ss), Arabic vowel marks and Hebrew points removed. Indic vowel signs stay because they are part of the letters.\n- A title matches only complete words in the same order, with any spaces or punctuation between them (“checkout-redesign” matches “Checkout redesign”, “Atlas” does not match “Atlases”). At each position the longest matching title wins. Chinese, Japanese, Thai, Lao, Khmer and Myanmar text has no spaces, so it is compared character by character; a Korean title may be followed by a particle (회의록을).\n- Titles shorter than the minimum, numbers alone, common words (“Notes”, “Todo”, “the” … in seven languages) and titles that occur in more than 5 % of at least 20 notes are not suggested. A note never suggests itself; notes that already link to each other with [[…]] (in either direction) are skipped.\n- Score 0.05–1: 0.4, plus 0.15 per extra word (up to 3), 0.1 for names of 8 letters or more and 0.1 per repeated mention (up to 3), minus 0.2 when several notes share the name. Each text is read once with a word trie, so the cost grows with the length of the notes; at most 4,000,000 characters are searched.\n- The linked notes replace the first mention of each suggestion that points to exactly one title with [[Title]] (or [[Title|words as written]]).",
        "tags": [
          "apps"
        ],
        "x-mcp-tool": "knotwork_link_suggestions",
        "x-owner-app": "knotwork",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/KnotworkLinkSuggestionsInput"
              },
              "examples": {
                "example1": {
                  "summary": "Team wiki: unlinked mentions of other notes and of two extra pages",
                  "value": {
                    "notes": "=== Onboarding\nStart with the Team handbook. Ask Ana for access to the tools we use.\n=== Team handbook\nHow we work: meeting rules, the release process and our [[Glossary]].\n=== Release process\nEvery second Tuesday. Run the deployment checklist first; the Release Process page is the source of truth.\n=== Meeting rules\nShort, with an agenda. Decisions go to the decision log.\n=== Glossary\nWords we use. See the team handbook.\n=== Tools we use\nIssue tracker, chat and the wiki.",
                    "titles": "Decision log | decisions\nDeployment checklist"
                  }
                },
                "example2": {
                  "summary": "Notes in German with accents and # headings",
                  "value": {
                    "notes": "# Übergabe\nDie Checkliste für den Releaseprozess liegt im Wiki, siehe auch Qualitätssicherung.\n# Releaseprozess\nJeden zweiten Dienstag.\n# Qualitätssicherung\nTests vor jedem Release.",
                    "titles": ""
                  }
                },
                "example3": {
                  "summary": "Chinese and Japanese notes (no spaces between words)",
                  "value": {
                    "notes": "=== 会议记录\n下次讨论项目计划。\n=== 项目计划\n第一阶段。\n=== メモ\n会議記録はここ。\n=== 会議記録\n毎週。",
                    "titles": ""
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Calculation result envelope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/KnotworkLinkSuggestionsResult"
                }
              }
            }
          },
          "400": {
            "description": "Malformed JSON body.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "422": {
            "description": "Invalid input (see errors[]).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded (see Retry-After).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/exam-study-planner/calculate": {
      "post": {
        "operationId": "calculateExamStudyPlanner",
        "summary": "How many new cards and reviews a day so every flashcard is learned before the exam.",
        "description": "Plans each day until one or more exams: how many new flashcards to learn and how many reviews are due, with a cram phase before each exam and a warning (and the minutes a day you would need) when your time budget is not enough. Reviews are forecast with the same FSRS-5 or SM-2 scheduler as Deckwright’s Study view and Lessonleaf; your existing cards and review log can be included. Exports a CSV and a calendar file.\n\nMethodology:\n- Every simulated review goes through the shared scheduler (FSRS-5 with its published default parameters, or SM-2) that also runs Deckwright’s Study view and Lessonleaf; existing cards start from the states rebuilt from your review log. Each simulated answer is “Good”; wrong answers only add time (your error share × the time per card).\n- Each day: reviews that are due come first, then cram reviews, then new cards. New cards of an exam are spread evenly over its learning days (today until the day before its cram phase, rest days skipped), earliest exam first; a day only takes more than its share when it is behind, and never more than your time budget or the new-card limit allows.\n- Cram phase (last N days before an exam): no new cards for it; every card whose predicted recall on exam day, R = (1 + 19/81 · t/S)^−0.5, is below the target — with SM-2, every card whose next review would fall after the exam — gets one extra review, weakest first, spread over the cram days.\n- The plan is realistic when all cards are introduced before their cram phase and no day needs more than the budget. Otherwise the smallest daily budget that fits is found by bisection over the same simulation (whole minutes, at most 24 hours).\n- Predicted recall on exam day is the FSRS mean over introduced cards; “all cards” counts cards that were never introduced as 0.\n\nA plan, not a promise: real answers vary, and the times per card are estimates — measure your own pace for a few days and adjust them. Recall figures are model estimates with default parameters.",
        "tags": [
          "apps"
        ],
        "x-mcp-tool": "exam_study_planner",
        "x-owner-app": "lessonleaf",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ExamStudyPlannerInput"
              },
              "examples": {
                "example1": {
                  "summary": "Two exams, 30 minutes a day, Sundays off",
                  "value": {
                    "exams": [
                      {
                        "date": "2026-12-18",
                        "name": "Biology midterm",
                        "cards": 240,
                        "tag": "Cell biology"
                      },
                      {
                        "date": "2027-01-15",
                        "name": "Spanish B1",
                        "cards": 400
                      }
                    ],
                    "today": "2026-12-01",
                    "minutesPerDay": 30,
                    "restDays": [
                      "0"
                    ]
                  }
                },
                "example2": {
                  "summary": "Too little time: 1,200 cards in two weeks with 20 minutes a day",
                  "value": {
                    "exams": [
                      {
                        "date": "2026-12-15",
                        "name": "Anatomy",
                        "cards": 1200
                      }
                    ],
                    "today": "2026-12-01",
                    "minutesPerDay": 20
                  }
                },
                "example3": {
                  "summary": "Existing cards and review log, SM-2, no cram phase",
                  "value": {
                    "exams": [
                      {
                        "date": "2026-12-20",
                        "name": "Biology",
                        "cards": 50,
                        "tag": "Cell biology"
                      },
                      {
                        "date": "2027-01-10",
                        "name": "Spanish",
                        "cards": 0,
                        "tag": "Spanish"
                      }
                    ],
                    "today": "2026-12-01",
                    "minutesPerDay": 15,
                    "cram": false,
                    "scheduler": "sm2",
                    "cards": "# Cell biology\nMitochondria :: make ATP by cellular respiration\nNucleus :: holds the cell's DNA\nRibosome :: builds proteins\nThe {{c1::cell membrane}} controls what enters the cell.\n\n# Spanish\nhola ::: hello\ngracias ::: thank you\n",
                    "log": "date,card,rating\n2026-11-20,Mitochondria,good\n2026-11-20,Nucleus,good\n2026-11-23,Mitochondria,good\n2026-11-24,hola,again\n2026-11-24,hola,good\n"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Calculation result envelope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExamStudyPlannerResult"
                }
              }
            }
          },
          "400": {
            "description": "Malformed JSON body.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "422": {
            "description": "Invalid input (see errors[]).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded (see Retry-After).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/highlights-to-flashcards/calculate": {
      "post": {
        "operationId": "calculateHighlightsToFlashcards",
        "summary": "Turn ==marked== text or PDF highlights into page-referenced notes and cloze or Q/A cards.",
        "description": "Collects what you highlighted — ==marked== or bold passages and \u003e quotes in pasted notes, or the highlight and underline annotations of a PDF — into a note list with page references, and turns each into a flashcard: short highlights become cloze gaps of their sentence, definitions become question-and-answer cards, longer passages become recall cards. The cards use the shared syntax of Lessonleaf and Deckwright and open in Deckwright’s Study view. Rule-based, no AI.\n\nMethodology:\n- Pasted text: ==…== and \u003cmark\u003e…\u003c/mark\u003e are highlights, **…** and __…__ too (switchable), and every block of “\u003e” lines is one quote. # headings set the section, “Page 12”, “p. 12”, “[p. 12]” lines or form feeds the page.\n- PDF: pdftotext lists every word with its box; qpdf reads the Highlight, Underline, Squiggly and StrikeOut annotations with their QuadPoints. A word belongs to a highlight when its centre lies inside one of the quadrilaterals (1 pt tolerance) and it overlaps at least half its height; words keep the reading order of the page, hyphenated line breaks are joined. The sentence around the highlight is found by walking to the nearest . ! ? before and after it.\n- Cards: a highlight of at most N words that covers less than 60 % of its sentence becomes a {{c1::…}} gap (several highlights in one sentence share one note with c1, c2 …). Longer passages become a Q/A card when they read like a definition (“Term: …”, “Term – …”, or in English “X is/are/means/refers to …”), a cloze when marked words are inside a quote, and otherwise a “recall the passage” card.\n- The cards are written in the shared card syntax and read back with the same parser as Deckwright’s Study view and Lessonleaf, so the card count shown is what those apps will show.\n\nRule-based: the cards are only as good as the highlights. Check each card before studying. Scanned PDFs have no text layer — run them through OCR first. The PDF is processed on the server for this request and not kept.",
        "tags": [
          "apps"
        ],
        "x-mcp-tool": "highlights_to_flashcards",
        "x-owner-app": "lessonleaf",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/HighlightsToFlashcardsInput"
              },
              "examples": {
                "example1": {
                  "summary": "Marked lecture notes with page numbers",
                  "value": {
                    "text": "# Cell biology\nPage 12\nMitochondria are the ==powerhouse== of the cell. They make **ATP** by oxidative phosphorylation.\nThe ==nucleus== stores the ==DNA== of the cell.\n\n\u003e Osmosis is the movement of water across a semipermeable membrane.\n\nPage 13\n==Ribosomes build proteins from amino acids. They read the codons of mRNA.==\n"
                  }
                },
                "example2": {
                  "summary": "A PDF with two highlight annotations",
                  "value": {
                    "file": {
                      "filename": "cell-biology.pdf",
                      "contentType": "application/pdf",
                      "contentBase64": "JVBERi0xLjQKMSAwIG9iago8PCAvVHlwZSAvQ2F0YWxvZyAvUGFnZXMgMiAwIFIgPj4KZW5kb2JqCjIgMCBvYmoKPDwgL1R5cGUgL1BhZ2VzIC9LaWRzIFszIDAgUl0gL0NvdW50IDEgPj4KZW5kb2JqCjMgMCBvYmoKPDwgL1R5cGUgL1BhZ2UgL1BhcmVudCAyIDAgUiAvTWVkaWFCb3ggWzAgMCA1OTUgODQyXSAvUmVzb3VyY2VzIDw8IC9Gb250IDw8IC9GMSA1IDAgUiA+PiA+PiAvQ29udGVudHMgNCAwIFIgL0Fubm90cyBbNiAwIFIgNyAwIFJdID4+CmVuZG9iago0IDAgb2JqCjw8IC9MZW5ndGggMjMzID4+CnN0cmVhbQpCVCAvRjEgMTIgVGYgNzIgNzQyIFRkIChNaXRvY2hvbmRyaWEgYXJlIHRoZSBwb3dlcmhvdXNlIG9mIHRoZSBjZWxsLikgVGogRVQKQlQgL0YxIDEyIFRmIDcyIDcyMiBUZCAoVGhleSBtYWtlIEFUUCBieSBveGlkYXRpdmUgcGhvc3Bob3J5bGF0aW9uLikgVGogRVQKQlQgL0YxIDEyIFRmIDcyIDcwMiBUZCAoT3Ntb3NpcyBpcyB0aGUgbW92ZW1lbnQgb2Ygd2F0ZXIgYWNyb3NzIGEgbWVtYnJhbmUuKSBUaiBFVAplbmRzdHJlYW0KZW5kb2JqCjUgMCBvYmoKPDwgL1R5cGUgL0ZvbnQgL1N1YnR5cGUgL1R5cGUxIC9CYXNlRm9udCAvQ291cmllciAvRW5jb2RpbmcgL1dpbkFuc2lFbmNvZGluZyA+PgplbmRvYmoKNiAwIG9iago8PCAvVHlwZSAvQW5ub3QgL1N1YnR5cGUgL0hpZ2hsaWdodCAvUmVjdCBbMjIzLjIwIDczOSAyOTUuMjAgNzUyXSAvUXVhZFBvaW50cyBbMjIzLjIwIDc1Mi4wMCAyOTUuMjAgNzUyLjAwIDIyMy4yMCA3MzkuMDAgMjk1LjIwIDczOS4wMF0gL0MgWzEgMSAwXSAvQ29udGVudHMgKGtleSB0ZXJtKSA+PgplbmRvYmoKNyAwIG9iago8PCAvVHlwZSAvQW5ub3QgL1N1YnR5cGUgL0hpZ2hsaWdodCAvUmVjdCBbNzIuMDAgNjk5IDQzMi4wMCA3MTJdIC9RdWFkUG9pbnRzIFs3Mi4wMCA3MTIuMDAgNDMyLjAwIDcxMi4wMCA3Mi4wMCA2OTkuMDAgNDMyLjAwIDY5OS4wMF0gL0MgWzEgMSAwXSA+PgplbmRvYmoKeHJlZgowIDgKMDAwMDAwMDAwMCA2NTUzNSBmIAowMDAwMDAwMDA5IDAwMDAwIG4gCjAwMDAwMDAwNTggMDAwMDAgbiAKMDAwMDAwMDExNSAwMDAwMCBuIAowMDAwMDAwMjYzIDAwMDAwIG4gCjAwMDAwMDA1NDcgMDAwMDAgbiAKMDAwMDAwMDY0MiAwMDAwMCBuIAowMDAwMDAwODI4IDAwMDAwIG4gCnRyYWlsZXIKPDwgL1NpemUgOCAvUm9vdCAxIDAgUiA+PgpzdGFydHhyZWYKOTkwCiUlRU9GCg=="
                    }
                  }
                },
                "example3": {
                  "summary": "Question-and-answer cards only, bold ignored",
                  "value": {
                    "text": "# Cell biology\nPage 12\nMitochondria are the ==powerhouse== of the cell. They make **ATP** by oxidative phosphorylation.\nThe ==nucleus== stores the ==DNA== of the cell.\n\n\u003e Osmosis is the movement of water across a semipermeable membrane.\n\nPage 13\n==Ribosomes build proteins from amino acids. They read the codons of mRNA.==\n",
                    "cardStyle": "qa",
                    "bold": false
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Calculation result envelope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HighlightsToFlashcardsResult"
                }
              }
            }
          },
          "400": {
            "description": "Malformed JSON body.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "422": {
            "description": "Invalid input (see errors[]).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded (see Retry-After).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/flashcard-format-converter/calculate": {
      "post": {
        "operationId": "calculateFlashcardFormatConverter",
        "summary": "Convert flashcards between Anki text, CSV, Quizlet, Mochi, Obsidian and Lessonleaf.",
        "description": "Converts flashcards between six text formats: the card syntax of Deckwright and Lessonleaf (Q:/A:, term :: definition, cloze), CSV, Anki “Notes in Plain Text” with note types and tags, Quizlet import text, Mochi Markdown and the Obsidian Spaced Repetition plugin syntax. Two-way cards, cloze gaps with hints and tags are carried over where the target can hold them; everything a format cannot hold is listed. The result is read back to check it.\n\nMethodology:\n- Every format is read into one note model (basic, two-way or cloze; question, answer, tags). The shared syntax is read with the same parser as Deckwright’s Study view (cards.ts), CSV with RFC 4180 rules, Anki text with its file headers (#separator, #html, #notetype column, #tags column, #deck column) and HTML turned into text.\n- Obsidian Spaced Repetition: tag lines such as #flashcards/deck set the deck of the cards below; front::back, front:::back (two-way), multi-line cards with a ? or ?? line, ==cloze== deletions (with ^[hint] and [^n] groups); \u003c!--SR:…--\u003e scheduling comments are ignored. Mochi: sides split at a --- line, cards at the delimiter line; {{1::…}} groups and {{…}} deletions. Quizlet: one card per line, term and definition split at a tab (or comma, or \" - \").\n- Cloze gaps are kept as {{cN::answer::hint}} internally; Obsidian gets ==answer== (classic ==answer==[^N] when gaps share a number), Mochi {{N::answer}}, Quizlet one line per gap (sentence with […] → hidden text).\n- Check: the output is parsed again with the target format’s reader; “verified” means it gives back the expected number of notes (Quizlet and Mochi count the cards they split into).\n\nText formats only: Anki .apkg packages, Mochi .mochi archives and pictures are not read or written, and review history is not converted. Card formatting beyond bold, italics and line breaks may change.",
        "tags": [
          "apps"
        ],
        "x-mcp-tool": "flashcard_format_converter",
        "x-owner-app": "lessonleaf",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FlashcardFormatConverterInput"
              },
              "examples": {
                "example1": {
                  "summary": "Shared card syntax to Anki (note types and tags)",
                  "value": {
                    "text": "# Spanish\nhola :: hello\ngracias ::: thank you\nQ: How do you say \"good morning\"?\nA: buenos días\n\n# Biology\nThe {{c1::nucleus}} stores the {{c2::DNA::molecule}}.\n",
                    "to": "anki"
                  }
                },
                "example2": {
                  "summary": "Obsidian Spaced Repetition to Quizlet",
                  "value": {
                    "text": "#flashcards/geography\nCapital of France::Paris\nLargest ocean:::Pacific\n\nThe ==Danube== flows into the ==Black Sea==.\n\u003c!--SR:!2026-12-20,4,270--\u003e\n",
                    "from": "obsidian",
                    "to": "quizlet"
                  }
                },
                "example3": {
                  "summary": "Quizlet export to Mochi",
                  "value": {
                    "text": "perro\tdog\ngato\tcat\ncaballo\thorse\n",
                    "from": "quizlet",
                    "to": "mochi"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Calculation result envelope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FlashcardFormatConverterResult"
                }
              }
            }
          },
          "400": {
            "description": "Malformed JSON body.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "422": {
            "description": "Invalid input (see errors[]).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded (see Retry-After).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/cloze-card-maker/calculate": {
      "post": {
        "operationId": "calculateClozeCardMaker",
        "summary": "Sentences plus key terms → fill-in-the-blank cloze cards for Anki, Deckwright, Lessonleaf.",
        "description": "Hides your key terms in your own sentences: every occurrence of a term becomes a cloze gap, one card per term (or all gaps on one card). Longer terms win over shorter ones, whole words only by default, any language. The result is in the shared cloze syntax that Anki, Deckwright and Lessonleaf read. No AI: only the terms you list are hidden.\n\nMethodology:\n- Terms are matched longest first, so “carbon dioxide” is one gap even when “carbon” is also a term; overlapping matches are skipped. Whole-word matching uses Unicode letters and digits as word characters, so it works for accented and non-Latin scripts.\n- “One card per term” numbers the distinct terms of each sentence c1, c2 …; the same term twice in a sentence shares its number (both gaps are hidden together). “All gaps on one card” uses c1 for every gap.\n- The cards are read back with the shared card parser (cards.ts), so the card count is what Deckwright and Lessonleaf will show; Anki reads the same {{c1::…}} syntax in its Cloze note type.\n\nExact text matching: inflected forms (plural, other cases) are only found when you list them too.",
        "tags": [
          "apps"
        ],
        "x-mcp-tool": "cloze_card_maker",
        "x-owner-app": "lessonleaf",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ClozeCardMakerInput"
              },
              "examples": {
                "example1": {
                  "summary": "Photosynthesis: one card per term",
                  "value": {}
                },
                "example2": {
                  "summary": "German vocabulary, all gaps on one card",
                  "value": {
                    "sentences": "Der Hund schläft unter dem Tisch.\nDie Katze sitzt auf dem Tisch.",
                    "terms": "Hund; Katze; Tisch",
                    "mode": "together",
                    "title": "Deutsch"
                  }
                },
                "example3": {
                  "summary": "Part-word matches (prefixes)",
                  "value": {
                    "sentences": "Hydrolysis splits a bond with water. Dehydration synthesis removes water.",
                    "terms": "hydro, water",
                    "wholeWords": false
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Calculation result envelope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClozeCardMakerResult"
                }
              }
            }
          },
          "400": {
            "description": "Malformed JSON body.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "422": {
            "description": "Invalid input (see errors[]).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded (see Retry-After).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/workflows": {
      "get": {
        "operationId": "listWorkflows",
        "summary": "Multi-tool workflows",
        "responses": {
          "200": {
            "description": "Workflow list.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Problem": {
        "type": "object",
        "description": "RFC 9457 problem details. 422 responses include per-field `errors`.",
        "required": [
          "type",
          "title",
          "status",
          "detail"
        ],
        "properties": {
          "type": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "status": {
            "type": "integer"
          },
          "detail": {
            "type": "string"
          },
          "code": {
            "type": "string"
          },
          "errors": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "field",
                "message"
              ],
              "properties": {
                "field": {
                  "type": "string"
                },
                "message": {
                  "type": "string"
                }
              }
            }
          }
        }
      },
      "LessonleafOutlineCardsInput": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "text": {
            "title": "Notes (Markdown outline)",
            "description": "Nested “- ” lists (two or four spaces per level), # headings and paragraphs. Cards: “term :: definition”, “term ::: definition” (both ways), {{c1::gap}}, or “question ::” followed by indented answer points. Optional front matter with title and tags.",
            "type": "string",
            "maxLength": 500000,
            "default": "---\ntitle: Cell biology\ntags: [biology]\n---\n- Organelles\n  - Nucleus :: holds the cell's DNA\n  - Mitochondria :: make ATP by cellular respiration #exam\n- Parts of every cell ::\n  - cell membrane\n  - cytoplasm\n  - ribosomes\n- Aerobic respiration ::: respiration that needs oxygen\n- The {{c1::cell membrane}} controls what enters the cell; plants also have a {{c2::cell wall}}.\n- Chloroplasts are only found in plant cells (a note, not a card).\n"
          }
        },
        "required": []
      },
      "LessonleafOutlineCardsResult": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "schemaVersion",
          "tool",
          "computedAt",
          "inputs",
          "summary",
          "result",
          "units",
          "assumptions",
          "sources",
          "warnings",
          "presentation",
          "links"
        ],
        "properties": {
          "schemaVersion": {
            "type": "string",
            "const": "1.0"
          },
          "tool": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "id",
              "name",
              "version"
            ],
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "version": {
                "type": "string"
              }
            }
          },
          "computedAt": {
            "type": "string",
            "format": "date-time"
          },
          "inputs": {
            "type": "object",
            "description": "Normalised inputs actually used, including applied defaults."
          },
          "summary": {
            "type": "string"
          },
          "result": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "title",
              "count",
              "kinds",
              "blocks",
              "tags",
              "cards",
              "csv",
              "anki",
              "warnings",
              "files",
              "openInApp"
            ],
            "properties": {
              "title": {
                "type": "string"
              },
              "count": {
                "type": "integer"
              },
              "blocks": {
                "type": "integer"
              },
              "kinds": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "basic",
                  "reverse",
                  "cloze"
                ],
                "properties": {
                  "basic": {
                    "type": "integer"
                  },
                  "reverse": {
                    "type": "integer"
                  },
                  "cloze": {
                    "type": "integer"
                  }
                }
              },
              "tags": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "cards": {
                "type": "array",
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "n",
                    "id",
                    "kind",
                    "front",
                    "back",
                    "block",
                    "tags",
                    "path"
                  ],
                  "properties": {
                    "n": {
                      "type": "integer"
                    },
                    "id": {
                      "type": "string"
                    },
                    "kind": {
                      "enum": [
                        "basic",
                        "reverse",
                        "cloze"
                      ]
                    },
                    "front": {
                      "type": "string"
                    },
                    "back": {
                      "type": "string"
                    },
                    "block": {
                      "type": "string"
                    },
                    "tags": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "path": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  }
                }
              },
              "csv": {
                "type": "string"
              },
              "anki": {
                "type": "string"
              },
              "warnings": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "files": {
                "type": [
                  "object",
                  "null"
                ],
                "additionalProperties": false,
                "required": [
                  "csv",
                  "anki"
                ],
                "properties": {
                  "csv": {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "artifactId",
                      "filename",
                      "mime",
                      "bytes",
                      "sha256",
                      "path"
                    ],
                    "properties": {
                      "artifactId": {
                        "type": "string"
                      },
                      "filename": {
                        "type": "string"
                      },
                      "mime": {
                        "type": "string"
                      },
                      "bytes": {
                        "type": "integer"
                      },
                      "sha256": {
                        "type": "string"
                      },
                      "path": {
                        "type": "string",
                        "description": "Download path on the same site (valid for about 2 hours)."
                      }
                    }
                  },
                  "anki": {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "artifactId",
                      "filename",
                      "mime",
                      "bytes",
                      "sha256",
                      "path"
                    ],
                    "properties": {
                      "artifactId": {
                        "type": "string"
                      },
                      "filename": {
                        "type": "string"
                      },
                      "mime": {
                        "type": "string"
                      },
                      "bytes": {
                        "type": "integer"
                      },
                      "sha256": {
                        "type": "string"
                      },
                      "path": {
                        "type": "string",
                        "description": "Download path on the same site (valid for about 2 hours)."
                      }
                    }
                  }
                }
              },
              "openInApp": {
                "type": [
                  "string",
                  "null"
                ]
              }
            }
          },
          "units": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "assumptions": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "sources": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "title"
              ],
              "properties": {
                "title": {
                  "type": "string"
                },
                "url": {
                  "type": "string"
                },
                "publisher": {
                  "type": "string"
                },
                "retrievedAt": {
                  "type": "string"
                },
                "note": {
                  "type": "string"
                }
              }
            }
          },
          "warnings": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "presentation": {
            "type": "array",
            "items": {
              "type": "object"
            },
            "description": "Display blocks used by the human page (same data)."
          },
          "links": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "human",
              "api",
              "openapi",
              "methodology"
            ],
            "properties": {
              "human": {
                "type": "string",
                "format": "uri"
              },
              "api": {
                "type": "string",
                "format": "uri"
              },
              "openapi": {
                "type": "string",
                "format": "uri"
              },
              "methodology": {
                "type": "string",
                "format": "uri"
              }
            }
          }
        }
      },
      "DeckwrightCardsFromMarkdownInput": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "text": {
            "title": "Cards",
            "description": "Markdown: “Q:” and “A:” lines, “term :: definition” (“:::” also makes the reverse card), {{c1::cloze}} gaps, # headings as tags. Or CSV/TSV rows (front, back, tag), an Anki plain-text export, or a slide deck.",
            "type": "string",
            "maxLength": 200000,
            "default": "# Greetings\nhola ::: hello\nbuenos días ::: good morning\ngracias ::: thank you\n\n# Getting around\nQ: How do you ask where the station is?\nA: ¿Dónde está la estación?\n\nla estación :: the station\nel billete :: the ticket\n\n# At the café\nun café con leche :: a coffee with milk\n\nQ: How do you ask for the bill?\nA: la cuenta, por favor\n\nMadrid's main station is {{c1::Atocha}}; the fast train to Barcelona takes about {{c2::two and a half::how long?}} hours.\n"
          },
          "format": {
            "title": "Format",
            "type": "string",
            "enum": [
              "auto",
              "markdown",
              "csv",
              "tsv",
              "anki",
              "deck"
            ],
            "default": "auto"
          },
          "reverse": {
            "title": "Also make reverse cards (answer → question)",
            "type": "boolean",
            "default": false
          },
          "lang": {
            "title": "Card language (BCP 47, e.g. en, es, ja)",
            "description": "Used for answer checks and fonts; empty = English.",
            "type": "string",
            "maxLength": 20,
            "default": ""
          }
        },
        "required": []
      },
      "DeckwrightCardsFromMarkdownResult": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "schemaVersion",
          "tool",
          "computedAt",
          "inputs",
          "summary",
          "result",
          "units",
          "assumptions",
          "sources",
          "warnings",
          "presentation",
          "links"
        ],
        "properties": {
          "schemaVersion": {
            "type": "string",
            "const": "1.0"
          },
          "tool": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "id",
              "name",
              "version"
            ],
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "version": {
                "type": "string"
              }
            }
          },
          "computedAt": {
            "type": "string",
            "format": "date-time"
          },
          "inputs": {
            "type": "object",
            "description": "Normalised inputs actually used, including applied defaults."
          },
          "summary": {
            "type": "string"
          },
          "result": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "format",
              "count",
              "kinds",
              "tags",
              "cards",
              "warnings",
              "skippedLines",
              "markdown",
              "files",
              "openInApp"
            ],
            "properties": {
              "format": {
                "enum": [
                  "markdown",
                  "csv",
                  "tsv",
                  "anki",
                  "deck"
                ]
              },
              "count": {
                "type": "integer"
              },
              "kinds": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "basic",
                  "reverse",
                  "cloze"
                ],
                "properties": {
                  "basic": {
                    "type": "integer"
                  },
                  "reverse": {
                    "type": "integer"
                  },
                  "cloze": {
                    "type": "integer"
                  }
                }
              },
              "tags": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "cards": {
                "type": "array",
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "n",
                    "id",
                    "kind",
                    "front",
                    "back",
                    "answer",
                    "tag",
                    "line"
                  ],
                  "properties": {
                    "n": {
                      "type": "integer"
                    },
                    "id": {
                      "type": "string"
                    },
                    "kind": {
                      "enum": [
                        "basic",
                        "reverse",
                        "cloze"
                      ]
                    },
                    "front": {
                      "type": "string"
                    },
                    "back": {
                      "type": "string"
                    },
                    "answer": {
                      "type": "string"
                    },
                    "tag": {
                      "type": "string"
                    },
                    "line": {
                      "type": "integer"
                    }
                  }
                }
              },
              "warnings": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "skippedLines": {
                "type": "integer"
              },
              "markdown": {
                "type": "string"
              },
              "files": {
                "type": [
                  "object",
                  "null"
                ],
                "additionalProperties": false,
                "required": [
                  "csv",
                  "markdown"
                ],
                "properties": {
                  "csv": {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "artifactId",
                      "filename",
                      "mime",
                      "bytes",
                      "sha256",
                      "path"
                    ],
                    "properties": {
                      "artifactId": {
                        "type": "string"
                      },
                      "filename": {
                        "type": "string"
                      },
                      "mime": {
                        "type": "string"
                      },
                      "bytes": {
                        "type": "integer"
                      },
                      "sha256": {
                        "type": "string"
                      },
                      "path": {
                        "type": "string",
                        "description": "Download path on the same site (valid for about 2 hours)."
                      }
                    }
                  },
                  "markdown": {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "artifactId",
                      "filename",
                      "mime",
                      "bytes",
                      "sha256",
                      "path"
                    ],
                    "properties": {
                      "artifactId": {
                        "type": "string"
                      },
                      "filename": {
                        "type": "string"
                      },
                      "mime": {
                        "type": "string"
                      },
                      "bytes": {
                        "type": "integer"
                      },
                      "sha256": {
                        "type": "string"
                      },
                      "path": {
                        "type": "string",
                        "description": "Download path on the same site (valid for about 2 hours)."
                      }
                    }
                  }
                }
              },
              "openInApp": {
                "type": [
                  "string",
                  "null"
                ]
              }
            }
          },
          "units": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "assumptions": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "sources": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "title"
              ],
              "properties": {
                "title": {
                  "type": "string"
                },
                "url": {
                  "type": "string"
                },
                "publisher": {
                  "type": "string"
                },
                "retrievedAt": {
                  "type": "string"
                },
                "note": {
                  "type": "string"
                }
              }
            }
          },
          "warnings": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "presentation": {
            "type": "array",
            "items": {
              "type": "object"
            },
            "description": "Display blocks used by the human page (same data)."
          },
          "links": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "human",
              "api",
              "openapi",
              "methodology"
            ],
            "properties": {
              "human": {
                "type": "string",
                "format": "uri"
              },
              "api": {
                "type": "string",
                "format": "uri"
              },
              "openapi": {
                "type": "string",
                "format": "uri"
              },
              "methodology": {
                "type": "string",
                "format": "uri"
              }
            }
          }
        }
      },
      "DeckwrightReviewScheduleInput": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "text": {
            "title": "Cards",
            "description": "Markdown: “Q:” and “A:” lines, “term :: definition” (“:::” also makes the reverse card), {{c1::cloze}} gaps, # headings as tags. Or CSV/TSV rows (front, back, tag), an Anki plain-text export, or a slide deck.",
            "type": "string",
            "maxLength": 200000,
            "default": "# Greetings\nhola ::: hello\nbuenos días ::: good morning\ngracias ::: thank you\n\n# Getting around\nQ: How do you ask where the station is?\nA: ¿Dónde está la estación?\n\nla estación :: the station\nel billete :: the ticket\n\n# At the café\nun café con leche :: a coffee with milk\n\nQ: How do you ask for the bill?\nA: la cuenta, por favor\n\nMadrid's main station is {{c1::Atocha}}; the fast train to Barcelona takes about {{c2::two and a half::how long?}} hours.\n"
          },
          "format": {
            "title": "Format",
            "type": "string",
            "enum": [
              "auto",
              "markdown",
              "csv",
              "tsv",
              "anki",
              "deck"
            ],
            "default": "auto"
          },
          "reverse": {
            "title": "Also make reverse cards (answer → question)",
            "type": "boolean",
            "default": false
          },
          "log": {
            "title": "Review log (CSV: date, card, rating)",
            "description": "One review per line: 2026-11-02,hola,good — the card is its id or its question text; the rating is again, hard, good, easy or 1–4. Deckwright’s “Export review log” writes this format.",
            "type": "string",
            "maxLength": 2000000,
            "default": "date,card,rating\n2026-11-02,hola,good\n2026-11-02,buenos días,good\n2026-11-02,gracias,again\n2026-11-02,gracias,good\n2026-11-05,hola,good\n2026-11-05,gracias,hard\n2026-11-06,buenos días,easy\n2026-11-07,la estación,good\n"
          },
          "today": {
            "title": "Today",
            "description": "The day to plan for; empty = today (UTC).",
            "type": "string",
            "format": "date"
          },
          "scheduler": {
            "title": "Scheduler",
            "type": "string",
            "enum": [
              "fsrs",
              "sm2"
            ],
            "default": "fsrs"
          },
          "retention": {
            "title": "Desired retention (FSRS)",
            "description": "Probability of remembering a card when it comes due; higher means shorter intervals and more reviews.",
            "type": "number",
            "minimum": 0.7,
            "maximum": 0.97,
            "default": 0.9
          },
          "newPerDay": {
            "title": "New cards per day",
            "type": "integer",
            "minimum": 0,
            "maximum": 999,
            "default": 20
          },
          "maxReviews": {
            "title": "Maximum reviews per day",
            "type": "integer",
            "minimum": 0,
            "maximum": 9999,
            "default": 200
          }
        },
        "required": []
      },
      "DeckwrightReviewScheduleResult": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "schemaVersion",
          "tool",
          "computedAt",
          "inputs",
          "summary",
          "result",
          "units",
          "assumptions",
          "sources",
          "warnings",
          "presentation",
          "links"
        ],
        "properties": {
          "schemaVersion": {
            "type": "string",
            "const": "1.0"
          },
          "tool": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "id",
              "name",
              "version"
            ],
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "version": {
                "type": "string"
              }
            }
          },
          "computedAt": {
            "type": "string",
            "format": "date-time"
          },
          "inputs": {
            "type": "object",
            "description": "Normalised inputs actually used, including applied defaults."
          },
          "summary": {
            "type": "string"
          },
          "result": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "today",
              "scheduler",
              "retention",
              "queue",
              "cards",
              "forecast",
              "stats",
              "logEntries",
              "warnings"
            ],
            "properties": {
              "today": {
                "type": "string"
              },
              "scheduler": {
                "enum": [
                  "fsrs",
                  "sm2"
                ]
              },
              "retention": {
                "type": "number"
              },
              "logEntries": {
                "type": "integer"
              },
              "queue": {
                "type": "array",
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "n",
                    "id",
                    "front",
                    "kind",
                    "due",
                    "overdueDays",
                    "retrievability",
                    "next"
                  ],
                  "properties": {
                    "n": {
                      "type": "integer"
                    },
                    "id": {
                      "type": "string"
                    },
                    "front": {
                      "type": "string"
                    },
                    "kind": {
                      "enum": [
                        "new",
                        "learning",
                        "review"
                      ]
                    },
                    "due": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "overdueDays": {
                      "type": "integer"
                    },
                    "retrievability": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "next": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "again",
                        "hard",
                        "good",
                        "easy"
                      ],
                      "properties": {
                        "again": {
                          "type": "integer"
                        },
                        "hard": {
                          "type": "integer"
                        },
                        "good": {
                          "type": "integer"
                        },
                        "easy": {
                          "type": "integer"
                        }
                      }
                    }
                  }
                }
              },
              "cards": {
                "type": "array",
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "front",
                    "phase",
                    "reps",
                    "lapses",
                    "stability",
                    "difficulty",
                    "ease",
                    "interval",
                    "last",
                    "due",
                    "retrievability"
                  ],
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "front": {
                      "type": "string"
                    },
                    "phase": {
                      "enum": [
                        "new",
                        "learning",
                        "review",
                        "relearning"
                      ]
                    },
                    "reps": {
                      "type": "integer"
                    },
                    "lapses": {
                      "type": "integer"
                    },
                    "stability": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "difficulty": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "ease": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "interval": {
                      "type": "integer"
                    },
                    "last": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "due": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "retrievability": {
                      "type": [
                        "number",
                        "null"
                      ]
                    }
                  }
                }
              },
              "forecast": {
                "type": "array",
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "date",
                    "count"
                  ],
                  "properties": {
                    "date": {
                      "type": "string"
                    },
                    "count": {
                      "type": "integer"
                    }
                  }
                }
              },
              "stats": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "cards",
                  "new",
                  "learning",
                  "young",
                  "mature",
                  "dueToday",
                  "newToday",
                  "reviewsTotal",
                  "retention30",
                  "averageRetrievability",
                  "streak",
                  "nextDue"
                ],
                "properties": {
                  "cards": {
                    "type": "integer"
                  },
                  "new": {
                    "type": "integer"
                  },
                  "learning": {
                    "type": "integer"
                  },
                  "young": {
                    "type": "integer"
                  },
                  "mature": {
                    "type": "integer"
                  },
                  "dueToday": {
                    "type": "integer"
                  },
                  "newToday": {
                    "type": "integer"
                  },
                  "reviewsTotal": {
                    "type": "integer"
                  },
                  "retention30": {
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "averageRetrievability": {
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "streak": {
                    "type": "integer"
                  },
                  "nextDue": {
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                }
              },
              "warnings": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            }
          },
          "units": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "assumptions": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "sources": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "title"
              ],
              "properties": {
                "title": {
                  "type": "string"
                },
                "url": {
                  "type": "string"
                },
                "publisher": {
                  "type": "string"
                },
                "retrievedAt": {
                  "type": "string"
                },
                "note": {
                  "type": "string"
                }
              }
            }
          },
          "warnings": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "presentation": {
            "type": "array",
            "items": {
              "type": "object"
            },
            "description": "Display blocks used by the human page (same data)."
          },
          "links": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "human",
              "api",
              "openapi",
              "methodology"
            ],
            "properties": {
              "human": {
                "type": "string",
                "format": "uri"
              },
              "api": {
                "type": "string",
                "format": "uri"
              },
              "openapi": {
                "type": "string",
                "format": "uri"
              },
              "methodology": {
                "type": "string",
                "format": "uri"
              }
            }
          }
        }
      },
      "DeckwrightPrintCardsInput": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "text": {
            "title": "Cards",
            "description": "Markdown: “Q:” and “A:” lines, “term :: definition” (“:::” also makes the reverse card), {{c1::cloze}} gaps, # headings as tags. Or CSV/TSV rows (front, back, tag), an Anki plain-text export, or a slide deck.",
            "type": "string",
            "maxLength": 200000,
            "default": "# Greetings\nhola ::: hello\nbuenos días ::: good morning\ngracias ::: thank you\n\n# Getting around\nQ: How do you ask where the station is?\nA: ¿Dónde está la estación?\n\nla estación :: the station\nel billete :: the ticket\n\n# At the café\nun café con leche :: a coffee with milk\n\nQ: How do you ask for the bill?\nA: la cuenta, por favor\n\nMadrid's main station is {{c1::Atocha}}; the fast train to Barcelona takes about {{c2::two and a half::how long?}} hours.\n"
          },
          "format": {
            "title": "Format",
            "type": "string",
            "enum": [
              "auto",
              "markdown",
              "csv",
              "tsv",
              "anki",
              "deck"
            ],
            "default": "auto"
          },
          "reverse": {
            "title": "Also make reverse cards (answer → question)",
            "type": "boolean",
            "default": false
          },
          "sheet": {
            "title": "Card sheet",
            "type": "string",
            "enum": [
              "a4-2x5-90x54",
              "a4-2x4-99x68",
              "a4-3x8-70x37",
              "a4-2x7-99x38",
              "letter-2x5",
              "letter-3x10"
            ],
            "default": "a4-2x5-90x54"
          },
          "sides": {
            "title": "Sides",
            "type": "string",
            "enum": [
              "both",
              "front",
              "fold"
            ],
            "default": "both"
          },
          "flip": {
            "title": "Duplex flip edge",
            "type": "string",
            "enum": [
              "long",
              "short"
            ],
            "default": "long"
          },
          "cutLines": {
            "title": "Cut lines around the cards",
            "type": "boolean",
            "default": true
          },
          "sizePt": {
            "title": "Largest text size",
            "type": "number",
            "minimum": 8,
            "maximum": 28,
            "default": 14,
            "x-unit": "pt"
          },
          "lang": {
            "title": "Card language (BCP 47, e.g. en, es, ja)",
            "description": "Used for answer checks and fonts; empty = English.",
            "type": "string",
            "maxLength": 20,
            "default": ""
          }
        },
        "required": []
      },
      "DeckwrightPrintCardsResult": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "schemaVersion",
          "tool",
          "computedAt",
          "inputs",
          "summary",
          "result",
          "units",
          "assumptions",
          "sources",
          "warnings",
          "presentation",
          "links"
        ],
        "properties": {
          "schemaVersion": {
            "type": "string",
            "const": "1.0"
          },
          "tool": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "id",
              "name",
              "version"
            ],
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "version": {
                "type": "string"
              }
            }
          },
          "computedAt": {
            "type": "string",
            "format": "date-time"
          },
          "inputs": {
            "type": "object",
            "description": "Normalised inputs actually used, including applied defaults."
          },
          "summary": {
            "type": "string"
          },
          "result": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "cards",
              "pages",
              "sheets",
              "perSheet",
              "sheet",
              "sides",
              "flip",
              "cardSizeMm",
              "cutCards",
              "warnings",
              "files",
              "openInApp"
            ],
            "properties": {
              "cards": {
                "type": "integer"
              },
              "pages": {
                "type": "integer"
              },
              "sheets": {
                "type": "integer"
              },
              "perSheet": {
                "type": "integer"
              },
              "sheet": {
                "type": "string"
              },
              "sides": {
                "enum": [
                  "both",
                  "front",
                  "fold"
                ]
              },
              "flip": {
                "enum": [
                  "long",
                  "short"
                ]
              },
              "cardSizeMm": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "w",
                  "h"
                ],
                "properties": {
                  "w": {
                    "type": "number"
                  },
                  "h": {
                    "type": "number"
                  }
                }
              },
              "cutCards": {
                "type": "array",
                "items": {
                  "type": "integer"
                }
              },
              "warnings": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "files": {
                "type": [
                  "object",
                  "null"
                ],
                "additionalProperties": false,
                "required": [
                  "pdf",
                  "png"
                ],
                "properties": {
                  "pdf": {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "artifactId",
                      "filename",
                      "mime",
                      "bytes",
                      "sha256",
                      "path"
                    ],
                    "properties": {
                      "artifactId": {
                        "type": "string"
                      },
                      "filename": {
                        "type": "string"
                      },
                      "mime": {
                        "type": "string"
                      },
                      "bytes": {
                        "type": "integer"
                      },
                      "sha256": {
                        "type": "string"
                      },
                      "path": {
                        "type": "string",
                        "description": "Download path on the same site (valid for about 2 hours)."
                      }
                    }
                  },
                  "png": {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "artifactId",
                      "filename",
                      "mime",
                      "bytes",
                      "sha256",
                      "path"
                    ],
                    "properties": {
                      "artifactId": {
                        "type": "string"
                      },
                      "filename": {
                        "type": "string"
                      },
                      "mime": {
                        "type": "string"
                      },
                      "bytes": {
                        "type": "integer"
                      },
                      "sha256": {
                        "type": "string"
                      },
                      "path": {
                        "type": "string",
                        "description": "Download path on the same site (valid for about 2 hours)."
                      }
                    }
                  }
                }
              },
              "openInApp": {
                "type": [
                  "string",
                  "null"
                ]
              }
            }
          },
          "units": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "assumptions": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "sources": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "title"
              ],
              "properties": {
                "title": {
                  "type": "string"
                },
                "url": {
                  "type": "string"
                },
                "publisher": {
                  "type": "string"
                },
                "retrievedAt": {
                  "type": "string"
                },
                "note": {
                  "type": "string"
                }
              }
            }
          },
          "warnings": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "presentation": {
            "type": "array",
            "items": {
              "type": "object"
            },
            "description": "Display blocks used by the human page (same data)."
          },
          "links": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "human",
              "api",
              "openapi",
              "methodology"
            ],
            "properties": {
              "human": {
                "type": "string",
                "format": "uri"
              },
              "api": {
                "type": "string",
                "format": "uri"
              },
              "openapi": {
                "type": "string",
                "format": "uri"
              },
              "methodology": {
                "type": "string",
                "format": "uri"
              }
            }
          }
        }
      },
      "KnotworkWikilinkMapInput": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "notes": {
            "title": "Notes (each starts with a line “=== Title”)",
            "description": "Without any “=== Title” line, “# Title” headings start the notes. Links match titles case-insensitively.",
            "type": "string",
            "maxLength": 4000000,
            "default": "=== Onboarding\nStart with [[Team handbook]] and [[Tools we use]]. Ask @[Ana Silva] for access.\n=== Team handbook\nHow we work: see [[Meeting rules]] and [[Release process]].\n=== Release process\nChecklist in [[Tools we use]]. Owner: @[Ben Okafor]. Old notes: [[Release 2025]].\n=== Tools we use\nIssue tracker, chat and the wiki. Back to [[Onboarding]].\n=== Meeting rules\nShort, with an agenda.\n=== Parking\nGarage on level -2."
          },
          "top": {
            "title": "Show the top hubs",
            "type": "number",
            "minimum": 1,
            "maximum": 100,
            "default": 10
          }
        },
        "required": [
          "notes"
        ]
      },
      "KnotworkWikilinkMapResult": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "schemaVersion",
          "tool",
          "computedAt",
          "inputs",
          "summary",
          "result",
          "units",
          "assumptions",
          "sources",
          "warnings",
          "presentation",
          "links"
        ],
        "properties": {
          "schemaVersion": {
            "type": "string",
            "const": "1.0"
          },
          "tool": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "id",
              "name",
              "version"
            ],
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "version": {
                "type": "string"
              }
            }
          },
          "computedAt": {
            "type": "string",
            "format": "date-time"
          },
          "inputs": {
            "type": "object",
            "description": "Normalised inputs actually used, including applied defaults."
          },
          "summary": {
            "type": "string"
          },
          "result": {
            "type": "object",
            "required": [
              "pages",
              "links",
              "broken",
              "graph",
              "analysis"
            ],
            "properties": {
              "pages": {
                "type": "integer"
              },
              "links": {
                "type": "integer",
                "description": "Wiki and .md links found (resolved or not)."
              },
              "mentions": {
                "type": "integer"
              },
              "external": {
                "type": "integer"
              },
              "broken": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "fromTitle": {
                      "type": "string"
                    },
                    "target": {
                      "type": "string"
                    }
                  }
                }
              },
              "duplicateTitles": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "graph": {
                "type": "object",
                "description": "nodes (page:N, person:N) and edges (kind link or mention) — open it in Knotwork or the link graph analyser."
              },
              "analysis": {
                "type": "object",
                "description": "Same report as knotwork-link-graph (people are not counted as hubs or orphans)."
              }
            }
          },
          "units": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "assumptions": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "sources": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "title"
              ],
              "properties": {
                "title": {
                  "type": "string"
                },
                "url": {
                  "type": "string"
                },
                "publisher": {
                  "type": "string"
                },
                "retrievedAt": {
                  "type": "string"
                },
                "note": {
                  "type": "string"
                }
              }
            }
          },
          "warnings": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "presentation": {
            "type": "array",
            "items": {
              "type": "object"
            },
            "description": "Display blocks used by the human page (same data)."
          },
          "links": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "human",
              "api",
              "openapi",
              "methodology"
            ],
            "properties": {
              "human": {
                "type": "string",
                "format": "uri"
              },
              "api": {
                "type": "string",
                "format": "uri"
              },
              "openapi": {
                "type": "string",
                "format": "uri"
              },
              "methodology": {
                "type": "string",
                "format": "uri"
              }
            }
          }
        }
      },
      "KnotworkLinkSuggestionsInput": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "notes": {
            "title": "Notes (each starts with a line “=== Title”)",
            "description": "Without any “=== Title” line, “# Title” headings start the notes. Existing [[links]], code and web addresses are not searched.",
            "type": "string",
            "maxLength": 4000000,
            "default": "=== Onboarding\nStart with the Team handbook. Ask Ana for access to the tools we use.\n=== Team handbook\nHow we work: meeting rules, the release process and our [[Glossary]].\n=== Release process\nEvery second Tuesday. Run the deployment checklist first; the Release Process page is the source of truth.\n=== Meeting rules\nShort, with an agenda. Decisions go to the decision log.\n=== Glossary\nWords we use. See the team handbook.\n=== Tools we use\nIssue tracker, chat and the wiki."
          },
          "titles": {
            "title": "More titles to look for (optional, one per line)",
            "description": "Pages that are not in the pasted notes, e.g. other pages of your wiki. Other names of the same page after a | sign.",
            "type": "string",
            "maxLength": 200000,
            "default": ""
          },
          "minChars": {
            "title": "Ignore titles shorter than (letters)",
            "description": "Scripts written without spaces (Chinese, Japanese, Thai …) need at least 2 characters.",
            "type": "number",
            "minimum": 1,
            "maximum": 20,
            "default": 3
          },
          "perNote": {
            "title": "Suggestions per note (at most)",
            "type": "number",
            "minimum": 1,
            "maximum": 200,
            "default": 20
          }
        },
        "required": [
          "notes"
        ]
      },
      "KnotworkLinkSuggestionsResult": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "schemaVersion",
          "tool",
          "computedAt",
          "inputs",
          "summary",
          "result",
          "units",
          "assumptions",
          "sources",
          "warnings",
          "presentation",
          "links"
        ],
        "properties": {
          "schemaVersion": {
            "type": "string",
            "const": "1.0"
          },
          "tool": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "id",
              "name",
              "version"
            ],
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "version": {
                "type": "string"
              }
            }
          },
          "computedAt": {
            "type": "string",
            "format": "date-time"
          },
          "inputs": {
            "type": "object",
            "description": "Normalised inputs actually used, including applied defaults."
          },
          "summary": {
            "type": "string"
          },
          "result": {
            "type": "object",
            "required": [
              "notes",
              "names",
              "suggestions",
              "linkedNotes",
              "added",
              "stats"
            ],
            "properties": {
              "notes": {
                "type": "integer"
              },
              "names": {
                "type": "integer",
                "description": "Distinct names searched (titles and other names that were not too short or too common)."
              },
              "suggestions": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "from": {
                      "type": "string"
                    },
                    "to": {
                      "type": "string"
                    },
                    "fromTitle": {
                      "type": "string"
                    },
                    "toTitle": {
                      "type": "string"
                    },
                    "matched": {
                      "type": "string"
                    },
                    "count": {
                      "type": "integer"
                    },
                    "score": {
                      "type": "number"
                    },
                    "snippet": {
                      "type": "string"
                    },
                    "offset": {
                      "type": "integer"
                    },
                    "span": {
                      "type": "integer"
                    },
                    "ambiguous": {
                      "type": "boolean"
                    }
                  }
                }
              },
              "linkedNotes": {
                "type": "string",
                "description": "The notes with the first mention of each unambiguous suggestion turned into a [[link]]."
              },
              "added": {
                "type": "integer"
              },
              "stats": {
                "type": "object"
              }
            }
          },
          "units": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "assumptions": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "sources": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "title"
              ],
              "properties": {
                "title": {
                  "type": "string"
                },
                "url": {
                  "type": "string"
                },
                "publisher": {
                  "type": "string"
                },
                "retrievedAt": {
                  "type": "string"
                },
                "note": {
                  "type": "string"
                }
              }
            }
          },
          "warnings": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "presentation": {
            "type": "array",
            "items": {
              "type": "object"
            },
            "description": "Display blocks used by the human page (same data)."
          },
          "links": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "human",
              "api",
              "openapi",
              "methodology"
            ],
            "properties": {
              "human": {
                "type": "string",
                "format": "uri"
              },
              "api": {
                "type": "string",
                "format": "uri"
              },
              "openapi": {
                "type": "string",
                "format": "uri"
              },
              "methodology": {
                "type": "string",
                "format": "uri"
              }
            }
          }
        }
      },
      "ExamStudyPlannerInput": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "exams": {
            "title": "Exams",
            "description": "One row per exam: a date like 2027-01-20 or days from today like +28, the number of cards still to learn, and the tag (heading) of cards you already have for it.",
            "type": "array",
            "minItems": 1,
            "maxItems": 8,
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "date": {
                  "title": "Date or days from today",
                  "type": "string",
                  "maxLength": 12
                },
                "name": {
                  "title": "Exam",
                  "type": "string",
                  "maxLength": 80
                },
                "cards": {
                  "title": "New cards",
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 20000
                },
                "tag": {
                  "title": "Tag of its existing cards (optional)",
                  "type": "string",
                  "maxLength": 60
                }
              },
              "required": [
                "date"
              ]
            },
            "default": [
              {
                "date": "+21",
                "name": "Biology midterm",
                "cards": 240,
                "tag": "Cell biology"
              },
              {
                "date": "+45",
                "name": "Spanish B1",
                "cards": 400,
                "tag": "Spanish"
              }
            ]
          },
          "minutesPerDay": {
            "title": "Time per study day",
            "type": "integer",
            "minimum": 1,
            "maximum": 1440,
            "default": 30,
            "x-unit": "min"
          },
          "today": {
            "title": "Start date",
            "description": "Empty = today (UTC).",
            "type": "string",
            "format": "date"
          },
          "restDays": {
            "title": "Days without study",
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "0",
                "1",
                "2",
                "3",
                "4",
                "5",
                "6"
              ]
            },
            "default": []
          },
          "cram": {
            "title": "Cram phase before each exam (no new cards, extra reviews)",
            "type": "boolean",
            "default": true
          },
          "cramDays": {
            "title": "Cram days",
            "type": "integer",
            "minimum": 1,
            "maximum": 14,
            "default": 3
          },
          "cramRetention": {
            "title": "Recall target on exam day (FSRS)",
            "description": "Cards whose predicted recall on exam day is lower get one more review during the cram days.",
            "type": "number",
            "minimum": 0.7,
            "maximum": 0.99,
            "default": 0.9
          },
          "secondsNew": {
            "title": "Time for a new card",
            "type": "number",
            "minimum": 5,
            "maximum": 600,
            "default": 40,
            "x-unit": "s"
          },
          "secondsReview": {
            "title": "Time for a review",
            "type": "number",
            "minimum": 2,
            "maximum": 300,
            "default": 12,
            "x-unit": "s"
          },
          "againRate": {
            "title": "Share of answers you get wrong",
            "description": "Adds time for repeating missed cards (0.1 = one in ten).",
            "type": "number",
            "minimum": 0,
            "maximum": 0.5,
            "default": 0.1
          },
          "maxNewPerDay": {
            "title": "Most new cards on one day",
            "type": "integer",
            "minimum": 1,
            "maximum": 9999,
            "default": 200
          },
          "scheduler": {
            "title": "Scheduler",
            "type": "string",
            "enum": [
              "fsrs",
              "sm2"
            ],
            "default": "fsrs"
          },
          "retention": {
            "title": "Desired retention (FSRS)",
            "type": "number",
            "minimum": 0.7,
            "maximum": 0.97,
            "default": 0.9
          },
          "cards": {
            "title": "Cards you already have (optional)",
            "description": "Deckwright or Lessonleaf card text, CSV or Anki text. Cards whose heading or tag matches an exam’s tag belong to that exam; the others to the first exam without a tag.",
            "type": "string",
            "maxLength": 200000,
            "default": ""
          },
          "log": {
            "title": "Review log (optional, CSV: date, card, rating)",
            "description": "Deckwright’s “Export review log” format; without a log your cards count as new.",
            "type": "string",
            "maxLength": 2000000,
            "default": ""
          }
        },
        "required": []
      },
      "ExamStudyPlannerResult": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "schemaVersion",
          "tool",
          "computedAt",
          "inputs",
          "summary",
          "result",
          "units",
          "assumptions",
          "sources",
          "warnings",
          "presentation",
          "links"
        ],
        "properties": {
          "schemaVersion": {
            "type": "string",
            "const": "1.0"
          },
          "tool": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "id",
              "name",
              "version"
            ],
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "version": {
                "type": "string"
              }
            }
          },
          "computedAt": {
            "type": "string",
            "format": "date-time"
          },
          "inputs": {
            "type": "object",
            "description": "Normalised inputs actually used, including applied defaults."
          },
          "summary": {
            "type": "string"
          },
          "result": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "today",
              "realistic",
              "requiredMinutes",
              "minutesPerDay",
              "scheduler",
              "exams",
              "days",
              "totals",
              "warnings",
              "files"
            ],
            "properties": {
              "today": {
                "type": "string"
              },
              "realistic": {
                "type": "boolean"
              },
              "requiredMinutes": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "minutesPerDay": {
                "type": "integer"
              },
              "scheduler": {
                "enum": [
                  "fsrs",
                  "sm2"
                ]
              },
              "exams": {
                "type": "array",
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "name",
                    "date",
                    "tag",
                    "cards",
                    "existingCards",
                    "newCards",
                    "introduced",
                    "notIntroduced",
                    "learnBy",
                    "cramFrom",
                    "cramReviews",
                    "recallIntroduced",
                    "recallAll"
                  ],
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "date": {
                      "type": "string"
                    },
                    "tag": {
                      "type": "string"
                    },
                    "cards": {
                      "type": "integer"
                    },
                    "existingCards": {
                      "type": "integer"
                    },
                    "newCards": {
                      "type": "integer"
                    },
                    "introduced": {
                      "type": "integer"
                    },
                    "notIntroduced": {
                      "type": "integer"
                    },
                    "learnBy": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "cramFrom": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "cramReviews": {
                      "type": "integer"
                    },
                    "recallIntroduced": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "recallAll": {
                      "type": [
                        "number",
                        "null"
                      ]
                    }
                  }
                }
              },
              "days": {
                "type": "array",
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "date",
                    "weekday",
                    "phase",
                    "newCards",
                    "newByExam",
                    "reviews",
                    "cramReviews",
                    "minutes",
                    "overBudget",
                    "exams"
                  ],
                  "properties": {
                    "date": {
                      "type": "string"
                    },
                    "weekday": {
                      "enum": [
                        "sun",
                        "mon",
                        "tue",
                        "wed",
                        "thu",
                        "fri",
                        "sat"
                      ]
                    },
                    "phase": {
                      "enum": [
                        "learn",
                        "cram",
                        "rest",
                        "exam"
                      ]
                    },
                    "newCards": {
                      "type": "integer"
                    },
                    "newByExam": {
                      "type": "array",
                      "items": {
                        "type": "integer"
                      }
                    },
                    "reviews": {
                      "type": "integer"
                    },
                    "cramReviews": {
                      "type": "integer"
                    },
                    "minutes": {
                      "type": "number"
                    },
                    "overBudget": {
                      "type": "boolean"
                    },
                    "exams": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  }
                }
              },
              "totals": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "newCards",
                  "reviews",
                  "cramReviews",
                  "minutes",
                  "studyDays",
                  "peakMinutes",
                  "peakDate",
                  "overBudgetDays"
                ],
                "properties": {
                  "newCards": {
                    "type": "integer"
                  },
                  "reviews": {
                    "type": "integer"
                  },
                  "cramReviews": {
                    "type": "integer"
                  },
                  "minutes": {
                    "type": "integer"
                  },
                  "studyDays": {
                    "type": "integer"
                  },
                  "peakMinutes": {
                    "type": "number"
                  },
                  "peakDate": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "overBudgetDays": {
                    "type": "integer"
                  }
                }
              },
              "warnings": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "files": {
                "type": [
                  "object",
                  "null"
                ],
                "additionalProperties": false,
                "required": [
                  "csv",
                  "ics"
                ],
                "properties": {
                  "csv": {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "artifactId",
                      "filename",
                      "mime",
                      "bytes",
                      "sha256",
                      "path"
                    ],
                    "properties": {
                      "artifactId": {
                        "type": "string"
                      },
                      "filename": {
                        "type": "string"
                      },
                      "mime": {
                        "type": "string"
                      },
                      "bytes": {
                        "type": "integer"
                      },
                      "sha256": {
                        "type": "string"
                      },
                      "path": {
                        "type": "string",
                        "description": "Download path on the same site (valid for about 2 hours)."
                      }
                    }
                  },
                  "ics": {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "artifactId",
                      "filename",
                      "mime",
                      "bytes",
                      "sha256",
                      "path"
                    ],
                    "properties": {
                      "artifactId": {
                        "type": "string"
                      },
                      "filename": {
                        "type": "string"
                      },
                      "mime": {
                        "type": "string"
                      },
                      "bytes": {
                        "type": "integer"
                      },
                      "sha256": {
                        "type": "string"
                      },
                      "path": {
                        "type": "string",
                        "description": "Download path on the same site (valid for about 2 hours)."
                      }
                    }
                  }
                }
              }
            }
          },
          "units": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "assumptions": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "sources": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "title"
              ],
              "properties": {
                "title": {
                  "type": "string"
                },
                "url": {
                  "type": "string"
                },
                "publisher": {
                  "type": "string"
                },
                "retrievedAt": {
                  "type": "string"
                },
                "note": {
                  "type": "string"
                }
              }
            }
          },
          "warnings": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "presentation": {
            "type": "array",
            "items": {
              "type": "object"
            },
            "description": "Display blocks used by the human page (same data)."
          },
          "links": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "human",
              "api",
              "openapi",
              "methodology"
            ],
            "properties": {
              "human": {
                "type": "string",
                "format": "uri"
              },
              "api": {
                "type": "string",
                "format": "uri"
              },
              "openapi": {
                "type": "string",
                "format": "uri"
              },
              "methodology": {
                "type": "string",
                "format": "uri"
              }
            }
          }
        }
      },
      "HighlightsToFlashcardsInput": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "text": {
            "title": "Text with highlights",
            "description": "Mark passages with ==double equals==, \u003cmark\u003e…\u003c/mark\u003e or **bold**; lines starting with \u003e are quotes. “Page 12” lines or form feeds set page numbers, # headings the section. Ignored when a PDF is uploaded.",
            "type": "string",
            "maxLength": 400000,
            "default": "# Cell biology\nPage 12\nMitochondria are the ==powerhouse== of the cell. They make **ATP** by oxidative phosphorylation.\nThe ==nucleus== stores the ==DNA== of the cell.\n\n\u003e Osmosis is the movement of water across a semipermeable membrane.\n\nPage 13\n==Ribosomes build proteins from amino acids. They read the codons of mRNA.==\n"
          },
          "file": {
            "title": "Or a PDF with highlights",
            "description": "Highlight, underline, squiggly and strike-out annotations; at most 300 pages. Scanned pages without a text layer cannot be read. Upload as {filename, contentType?, contentBase64}. Max 102400 KiB. Accepts .pdf,application/pdf.",
            "type": "object",
            "additionalProperties": false,
            "required": [
              "filename",
              "contentBase64"
            ],
            "properties": {
              "filename": {
                "type": "string"
              },
              "contentType": {
                "type": "string"
              },
              "contentBase64": {
                "type": "string"
              }
            }
          },
          "cardStyle": {
            "title": "Card style",
            "type": "string",
            "enum": [
              "auto",
              "cloze",
              "qa"
            ],
            "default": "auto"
          },
          "bold": {
            "title": "Bold text counts as a highlight",
            "type": "boolean",
            "default": true
          },
          "quotes": {
            "title": "Quote lines (\u003e) count as highlights",
            "type": "boolean",
            "default": true
          },
          "maxClozeWords": {
            "title": "Longest highlight for a cloze gap",
            "type": "integer",
            "minimum": 1,
            "maximum": 30,
            "default": 8,
            "x-unit": "words"
          },
          "lang": {
            "title": "Language of the text (for definition questions)",
            "description": "“What is …?” questions are only written for English; other languages use “Term: definition” lines.",
            "type": "string",
            "maxLength": 20,
            "default": "en"
          },
          "title": {
            "title": "Title",
            "type": "string",
            "maxLength": 80,
            "default": "Highlights"
          }
        },
        "required": []
      },
      "HighlightsToFlashcardsResult": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "schemaVersion",
          "tool",
          "computedAt",
          "inputs",
          "summary",
          "result",
          "units",
          "assumptions",
          "sources",
          "warnings",
          "presentation",
          "links"
        ],
        "properties": {
          "schemaVersion": {
            "type": "string",
            "const": "1.0"
          },
          "tool": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "id",
              "name",
              "version"
            ],
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "version": {
                "type": "string"
              }
            }
          },
          "computedAt": {
            "type": "string",
            "format": "date-time"
          },
          "inputs": {
            "type": "object",
            "description": "Normalised inputs actually used, including applied defaults."
          },
          "summary": {
            "type": "string"
          },
          "result": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "source",
              "pages",
              "highlights",
              "cards",
              "notesMarkdown",
              "cardsMarkdown",
              "cardCount",
              "pagesWithoutText",
              "annotations",
              "warnings",
              "files",
              "openInApp"
            ],
            "properties": {
              "source": {
                "enum": [
                  "text",
                  "pdf"
                ]
              },
              "pages": {
                "type": "integer"
              },
              "pagesWithoutText": {
                "type": "integer"
              },
              "annotations": {
                "type": "integer"
              },
              "cardCount": {
                "type": "integer"
              },
              "highlights": {
                "type": "array",
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "n",
                    "text",
                    "kind",
                    "page",
                    "section",
                    "context",
                    "comment"
                  ],
                  "properties": {
                    "n": {
                      "type": "integer"
                    },
                    "text": {
                      "type": "string"
                    },
                    "kind": {
                      "type": "string"
                    },
                    "page": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "section": {
                      "type": "string"
                    },
                    "context": {
                      "type": "string"
                    },
                    "comment": {
                      "type": "string"
                    }
                  }
                }
              },
              "cards": {
                "type": "array",
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "kind",
                    "highlights",
                    "page",
                    "section",
                    "front",
                    "back"
                  ],
                  "properties": {
                    "kind": {
                      "enum": [
                        "cloze",
                        "qa",
                        "definition",
                        "recall"
                      ]
                    },
                    "highlights": {
                      "type": "array",
                      "items": {
                        "type": "integer"
                      }
                    },
                    "page": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "section": {
                      "type": "string"
                    },
                    "front": {
                      "type": "string"
                    },
                    "back": {
                      "type": "string"
                    }
                  }
                }
              },
              "notesMarkdown": {
                "type": "string"
              },
              "cardsMarkdown": {
                "type": "string"
              },
              "warnings": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "files": {
                "type": [
                  "object",
                  "null"
                ],
                "additionalProperties": false,
                "required": [
                  "notes",
                  "cards"
                ],
                "properties": {
                  "notes": {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "artifactId",
                      "filename",
                      "mime",
                      "bytes",
                      "sha256",
                      "path"
                    ],
                    "properties": {
                      "artifactId": {
                        "type": "string"
                      },
                      "filename": {
                        "type": "string"
                      },
                      "mime": {
                        "type": "string"
                      },
                      "bytes": {
                        "type": "integer"
                      },
                      "sha256": {
                        "type": "string"
                      },
                      "path": {
                        "type": "string",
                        "description": "Download path on the same site (valid for about 2 hours)."
                      }
                    }
                  },
                  "cards": {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "artifactId",
                      "filename",
                      "mime",
                      "bytes",
                      "sha256",
                      "path"
                    ],
                    "properties": {
                      "artifactId": {
                        "type": "string"
                      },
                      "filename": {
                        "type": "string"
                      },
                      "mime": {
                        "type": "string"
                      },
                      "bytes": {
                        "type": "integer"
                      },
                      "sha256": {
                        "type": "string"
                      },
                      "path": {
                        "type": "string",
                        "description": "Download path on the same site (valid for about 2 hours)."
                      }
                    }
                  }
                }
              },
              "openInApp": {
                "type": [
                  "string",
                  "null"
                ]
              }
            }
          },
          "units": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "assumptions": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "sources": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "title"
              ],
              "properties": {
                "title": {
                  "type": "string"
                },
                "url": {
                  "type": "string"
                },
                "publisher": {
                  "type": "string"
                },
                "retrievedAt": {
                  "type": "string"
                },
                "note": {
                  "type": "string"
                }
              }
            }
          },
          "warnings": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "presentation": {
            "type": "array",
            "items": {
              "type": "object"
            },
            "description": "Display blocks used by the human page (same data)."
          },
          "links": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "human",
              "api",
              "openapi",
              "methodology"
            ],
            "properties": {
              "human": {
                "type": "string",
                "format": "uri"
              },
              "api": {
                "type": "string",
                "format": "uri"
              },
              "openapi": {
                "type": "string",
                "format": "uri"
              },
              "methodology": {
                "type": "string",
                "format": "uri"
              }
            }
          }
        }
      },
      "FlashcardFormatConverterInput": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "text": {
            "title": "Cards",
            "type": "string",
            "maxLength": 1000000,
            "default": "# Spanish\nhola :: hello\ngracias ::: thank you\nQ: How do you say \"good morning\"?\nA: buenos días\n\n# Biology\nThe {{c1::nucleus}} stores the {{c2::DNA::molecule}}.\n"
          },
          "from": {
            "title": "From",
            "type": "string",
            "enum": [
              "auto",
              "markdown",
              "csv",
              "anki",
              "obsidian",
              "quizlet",
              "mochi"
            ],
            "default": "auto"
          },
          "to": {
            "title": "To",
            "type": "string",
            "enum": [
              "markdown",
              "csv",
              "anki",
              "obsidian",
              "quizlet",
              "mochi"
            ],
            "default": "anki"
          },
          "deckTag": {
            "title": "Obsidian deck tag",
            "description": "The plugin’s flashcard tag (without #); tags become sub-decks like #flashcards/Spanish.",
            "type": "string",
            "maxLength": 40,
            "default": "flashcards"
          },
          "mochiDelimiter": {
            "title": "Mochi card delimiter",
            "description": "The line between cards; choose the same delimiter in Mochi’s Markdown import.",
            "type": "string",
            "maxLength": 20,
            "default": "==="
          }
        },
        "required": []
      },
      "FlashcardFormatConverterResult": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "schemaVersion",
          "tool",
          "computedAt",
          "inputs",
          "summary",
          "result",
          "units",
          "assumptions",
          "sources",
          "warnings",
          "presentation",
          "links"
        ],
        "properties": {
          "schemaVersion": {
            "type": "string",
            "const": "1.0"
          },
          "tool": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "id",
              "name",
              "version"
            ],
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "version": {
                "type": "string"
              }
            }
          },
          "computedAt": {
            "type": "string",
            "format": "date-time"
          },
          "inputs": {
            "type": "object",
            "description": "Normalised inputs actually used, including applied defaults."
          },
          "summary": {
            "type": "string"
          },
          "result": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "from",
              "to",
              "notes",
              "kinds",
              "tags",
              "cardsIn",
              "cardsOut",
              "text",
              "verified",
              "readBack",
              "warnings",
              "lost",
              "file",
              "openInApp"
            ],
            "properties": {
              "from": {
                "enum": [
                  "markdown",
                  "csv",
                  "anki",
                  "obsidian",
                  "quizlet",
                  "mochi"
                ]
              },
              "to": {
                "enum": [
                  "markdown",
                  "csv",
                  "anki",
                  "obsidian",
                  "quizlet",
                  "mochi"
                ]
              },
              "notes": {
                "type": "integer"
              },
              "cardsIn": {
                "type": "integer"
              },
              "cardsOut": {
                "type": "integer"
              },
              "text": {
                "type": "string"
              },
              "kinds": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "basic",
                  "both",
                  "cloze"
                ],
                "properties": {
                  "basic": {
                    "type": "integer"
                  },
                  "both": {
                    "type": "integer"
                  },
                  "cloze": {
                    "type": "integer"
                  }
                }
              },
              "tags": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "verified": {
                "type": "boolean",
                "description": "The output was read back with the target format’s reader and gave the expected number of notes."
              },
              "readBack": {
                "type": "integer"
              },
              "warnings": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "lost": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "file": {
                "anyOf": [
                  {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "artifactId",
                      "filename",
                      "mime",
                      "bytes",
                      "sha256",
                      "path"
                    ],
                    "properties": {
                      "artifactId": {
                        "type": "string"
                      },
                      "filename": {
                        "type": "string"
                      },
                      "mime": {
                        "type": "string"
                      },
                      "bytes": {
                        "type": "integer"
                      },
                      "sha256": {
                        "type": "string"
                      },
                      "path": {
                        "type": "string",
                        "description": "Download path on the same site (valid for about 2 hours)."
                      }
                    }
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "openInApp": {
                "type": [
                  "string",
                  "null"
                ]
              }
            }
          },
          "units": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "assumptions": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "sources": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "title"
              ],
              "properties": {
                "title": {
                  "type": "string"
                },
                "url": {
                  "type": "string"
                },
                "publisher": {
                  "type": "string"
                },
                "retrievedAt": {
                  "type": "string"
                },
                "note": {
                  "type": "string"
                }
              }
            }
          },
          "warnings": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "presentation": {
            "type": "array",
            "items": {
              "type": "object"
            },
            "description": "Display blocks used by the human page (same data)."
          },
          "links": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "human",
              "api",
              "openapi",
              "methodology"
            ],
            "properties": {
              "human": {
                "type": "string",
                "format": "uri"
              },
              "api": {
                "type": "string",
                "format": "uri"
              },
              "openapi": {
                "type": "string",
                "format": "uri"
              },
              "methodology": {
                "type": "string",
                "format": "uri"
              }
            }
          }
        }
      },
      "ClozeCardMakerInput": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "sentences": {
            "title": "Sentences",
            "description": "One sentence per line, or a paragraph that is split at sentence ends.",
            "type": "string",
            "maxLength": 200000,
            "default": "Photosynthesis takes place in the chloroplasts of plant cells.\nChlorophyll absorbs mostly red and blue light.\nThe light reactions split water and release oxygen.\nThe Calvin cycle fixes carbon dioxide into sugar."
          },
          "terms": {
            "title": "Key terms",
            "description": "Separated by commas, semicolons or new lines; put a term with a comma in \"quotes\".",
            "type": "string",
            "maxLength": 20000,
            "default": "chloroplasts, chlorophyll, red and blue light, oxygen, Calvin cycle, carbon dioxide"
          },
          "mode": {
            "title": "Cards",
            "type": "string",
            "enum": [
              "separate",
              "together"
            ],
            "default": "separate"
          },
          "caseSensitive": {
            "title": "Match upper and lower case exactly",
            "type": "boolean",
            "default": false
          },
          "wholeWords": {
            "title": "Whole words only",
            "type": "boolean",
            "default": true
          },
          "title": {
            "title": "Tag (heading) for the cards",
            "type": "string",
            "maxLength": 80,
            "default": ""
          }
        },
        "required": []
      },
      "ClozeCardMakerResult": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "schemaVersion",
          "tool",
          "computedAt",
          "inputs",
          "summary",
          "result",
          "units",
          "assumptions",
          "sources",
          "warnings",
          "presentation",
          "links"
        ],
        "properties": {
          "schemaVersion": {
            "type": "string",
            "const": "1.0"
          },
          "tool": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "id",
              "name",
              "version"
            ],
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "version": {
                "type": "string"
              }
            }
          },
          "computedAt": {
            "type": "string",
            "format": "date-time"
          },
          "inputs": {
            "type": "object",
            "description": "Normalised inputs actually used, including applied defaults."
          },
          "summary": {
            "type": "string"
          },
          "result": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "notes",
              "cards",
              "gaps",
              "cardsMarkdown",
              "unusedTerms",
              "skipped",
              "warnings",
              "file",
              "openInApp"
            ],
            "properties": {
              "notes": {
                "type": "integer"
              },
              "cards": {
                "type": "integer"
              },
              "gaps": {
                "type": "integer"
              },
              "cardsMarkdown": {
                "type": "string"
              },
              "unusedTerms": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "skipped": {
                "type": "array",
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "n",
                    "sentence"
                  ],
                  "properties": {
                    "n": {
                      "type": "integer"
                    },
                    "sentence": {
                      "type": "string"
                    }
                  }
                }
              },
              "warnings": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "file": {
                "anyOf": [
                  {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "artifactId",
                      "filename",
                      "mime",
                      "bytes",
                      "sha256",
                      "path"
                    ],
                    "properties": {
                      "artifactId": {
                        "type": "string"
                      },
                      "filename": {
                        "type": "string"
                      },
                      "mime": {
                        "type": "string"
                      },
                      "bytes": {
                        "type": "integer"
                      },
                      "sha256": {
                        "type": "string"
                      },
                      "path": {
                        "type": "string",
                        "description": "Download path on the same site (valid for about 2 hours)."
                      }
                    }
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "openInApp": {
                "type": [
                  "string",
                  "null"
                ]
              }
            }
          },
          "units": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "assumptions": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "sources": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "title"
              ],
              "properties": {
                "title": {
                  "type": "string"
                },
                "url": {
                  "type": "string"
                },
                "publisher": {
                  "type": "string"
                },
                "retrievedAt": {
                  "type": "string"
                },
                "note": {
                  "type": "string"
                }
              }
            }
          },
          "warnings": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "presentation": {
            "type": "array",
            "items": {
              "type": "object"
            },
            "description": "Display blocks used by the human page (same data)."
          },
          "links": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "human",
              "api",
              "openapi",
              "methodology"
            ],
            "properties": {
              "human": {
                "type": "string",
                "format": "uri"
              },
              "api": {
                "type": "string",
                "format": "uri"
              },
              "openapi": {
                "type": "string",
                "format": "uri"
              },
              "methodology": {
                "type": "string",
                "format": "uri"
              }
            }
          }
        }
      }
    }
  }
}