{
  "name": "kwj",
  "version": "1.0.0",
  "description": "KWJ token-saving infrastructure tools for Claude. Reduces context size by 80-98% on every operation.",
  "homepage": "https://kwj.ai",
  "tools": [
    {
      "name": "web_read",
      "description": "Fetch a URL with 3600s TTL caching. Zero cost on cache hit. Eliminates redundant web fetches across turns.",
      "endpoint": "GET https://kwj.ai/api/v1/web_read",
      "parameters": {
        "url": "string (required) — URL to fetch",
        "api_key": "string (required) — your kwj_... key"
      },
      "token_savings": "100% on cache hit (3600s TTL)"
    },
    {
      "name": "digest",
      "description": "Compress 500-line logs to 30 essential lines. Collapses repeated lines, elides middles, always rescues error/warning lines.",
      "endpoint": "GET https://kwj.ai/api/v1/digest",
      "parameters": {
        "input": "string (required) — raw text to compress",
        "api_key": "string (required)"
      },
      "token_savings": "94% reduction on typical build/command output"
    },
    {
      "name": "cache_get",
      "description": "Fuzzy answer lookup via Jaccard shingle similarity (0.35 threshold). Returns stored analysis if query matches a prior result.",
      "endpoint": "GET https://kwj.ai/api/v1/cache_get",
      "parameters": {
        "q": "string (required) — query to look up",
        "api_key": "string (required)"
      },
      "response": "{ok: bool, hit: bool, value: string|null}",
      "token_savings": "100% on hit — skips entire analysis"
    },
    {
      "name": "doc_extract",
      "description": "Extract text from PDF/XLSX/CSV without loading full document into context. 3-tier PDF pipeline: native text, OCR, Rust fallback.",
      "endpoint": "GET https://kwj.ai/api/v1/doc_extract",
      "parameters": {
        "file": "string (required) — absolute path to document",
        "api_key": "string (required)"
      },
      "token_savings": "Eliminates full-document context load"
    }
  ],
  "auth": {
    "type": "api_key",
    "location": "query_param",
    "param_name": "api_key",
    "key_prefix": "kwj_",
    "trial_endpoint": "POST https://kwj.ai/buy",
    "trial_body": "email=you@example.com",
    "pricing": "$19/month, 1-hour free trial"
  },
  "openapi": "https://kwj.ai/openapi.yaml"
}