synthesis_search

Search past lessons when stuck or facing a familiar error.

When to Call

Use search when you:

Input Schema

ParameterTypeRequiredDescription
keywordsstring[]YesKeywords to search for
error_messagestringNoSpecific error message

Example Request

{
  "keywords": ["jwt", "token", "expiry"],
  "error_message": "token expired"
}

Response

{
  "success": true,
  "search_terms": ["jwt", "token", "expiry", "expired"],
  "matches": [
    {
      "lesson_id": "2026-02-24-jwt-tokens-expiring",
      "title": "JWT tokens expiring immediately",
      "type": "incident",
      "score": 6,
      "matched_keywords": ["jwt", "token", "expiry"],
      "solution_preview": "Server was using local time, client expected UTC..."
    }
  ],
  "message": "Found 1 relevant lesson(s)"
}

Search Scope

Search looks through:

Scoring

Results are ranked by relevance:

No Results

If no lessons match:

{
  "success": true,
  "search_terms": ["xyz", "unknown"],
  "matches": [],
  "message": "No matching lessons found. This might be a new issue."
}