{
  "tools": [
    {
      "name": "check_dependencies",
      "description": "Check all required and optional dependencies for the paper writing assistant. Reports what's installed, what's missing, and install hints.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "required_only": {
            "default": false,
            "description": "Only check required dependencies",
            "type": "boolean"
          }
        }
      },
      "_meta": {
        "tool": "check-dependencies",
        "toolIri": "https://litlfred.github.io/folio-assistant/folio-assistant-sci/tools/check-dependencies.jsonld",
        "source": "registrar"
      }
    },
    {
      "name": "lean_formal_edges",
      "description": "Extract ELABORATED formal dependencies between a folio's lean.ref declarations (LeanArchitect's rule over the folio's own lean.ref set; no attributes, no LeanArchitect). Needs a Lean toolchain and a built Lake project. Tagged declarations missing from the build are reported, never recorded as dependency-free. With ingest=true the result is recorded in the formal cache as source \"elaborated\".",
      "inputSchema": {
        "type": "object",
        "properties": {
          "lake_dir": {
            "type": "string",
            "description": "The folio's Lake project directory (holds lakefile.* and .lake/)"
          },
          "root": {
            "description": "Content root to collect lean.ref targets from (default: the folio's declared one)",
            "type": "string"
          },
          "ingest": {
            "default": false,
            "description": "Record the result in the formal cache as source \"elaborated\"",
            "type": "boolean"
          }
        },
        "required": [
          "lake_dir"
        ]
      },
      "_meta": {
        "tool": "lean-formal-edges",
        "toolIri": "https://litlfred.github.io/folio-assistant/folio-assistant-sci/tools/lean-formal-edges.jsonld",
        "source": "registrar"
      }
    },
    {
      "name": "paper_preferences",
      "description": "Get or set user rendering preferences. Preferences persist across sessions in .folio-prefs.json. Set action='get' to view current, 'set' to update, 'reset' to restore defaults.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "action": {
            "default": "get",
            "description": "Action: get current, set values, or reset to defaults",
            "type": "string",
            "enum": [
              "get",
              "set",
              "reset"
            ]
          },
          "render_format": {
            "description": "Preferred output format",
            "type": "string",
            "enum": [
              "pdf",
              "html"
            ]
          },
          "render_scope": {
            "description": "Default render scope",
            "type": "string",
            "enum": [
              "full",
              "chapter",
              "section"
            ]
          },
          "latex_engine": {
            "description": "LaTeX engine",
            "type": "string",
            "enum": [
              "pdflatex",
              "lualatex",
              "xelatex"
            ]
          },
          "math_renderer": {
            "description": "Math renderer for HTML output",
            "type": "string",
            "enum": [
              "katex",
              "mathjax"
            ]
          },
          "auto_preview": {
            "description": "Automatically open in browser after render",
            "type": "boolean"
          },
          "formula_dpi": {
            "description": "DPI for formula preview PNG",
            "type": "number"
          },
          "default_chapter": {
            "description": "Default chapter to render when scope=chapter",
            "type": "string"
          },
          "print_mode": {
            "description": "Print mode: formal (affiliations, expanded) or compact (dense, no affiliations)",
            "type": "string",
            "enum": [
              "formal",
              "compact"
            ]
          },
          "compact_inline_refs": {
            "description": "In compact mode, include examples/remarks directly referenced by blocks in the view",
            "type": "boolean"
          }
        }
      },
      "_meta": {
        "tool": "paper-preferences",
        "toolIri": "https://litlfred.github.io/folio-assistant/folio-assistant-sci/tools/paper-preferences.jsonld",
        "source": "registrar"
      }
    },
    {
      "name": "paper_preview",
      "description": "Open a rendered PDF or HTML file in the system browser. Lists available renders if no specific file is given.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "file": {
            "description": "Specific file to open (path relative to build/ or absolute)",
            "type": "string"
          },
          "format": {
            "description": "Filter by format when listing available renders",
            "type": "string",
            "enum": [
              "pdf",
              "html",
              "png"
            ]
          },
          "list": {
            "default": false,
            "description": "Just list available renders without opening",
            "type": "boolean"
          }
        }
      },
      "_meta": {
        "tool": "paper-preview",
        "toolIri": "https://litlfred.github.io/folio-assistant/folio-assistant-sci/tools/paper-preview.jsonld",
        "source": "registrar"
      }
    }
  ]
}
