Search Entries
search_entriesSearch journal entries using keyword, semantic, or hybrid matching; filter by GitHub project, issue, PR, or action, and sort by importance to surface relevant decisions.
Instructions
Search journal entries. Use sort_by: "importance" to surface structurally significant entries before major decisions. Supports modes: auto (default), fts, semantic, hybrid. Optional filters for GitHub Projects, Issues, PRs, and Actions. FTS5 syntax: "exact phrase", prefix*, OR/NOT/AND. Word-boundary matched. Automatically merges team DB results when TEAM_DB_PATH is configured.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Search strategy: auto (default, heuristic-based), fts (FTS5 keyword), semantic (vector), hybrid (RRF fusion of FTS5+vector) | auto |
| tags | No | ||
| limit | No | ||
| query | No | The search query string (use `query`, not `q`) | |
| cursor | No | Cursor for pagination | |
| sort_by | No | Sort results by timestamp (default) or importance score | timestamp |
| end_date | No | ||
| pr_number | No | ||
| pr_status | No | ||
| entry_type | No | ||
| fts_weight | No | Weight multiplier for FTS5 results in hybrid search (default: 1.0) | |
| start_date | No | ||
| exact_match | No | Legacy hallucinated alias. Maps exact_match: false to fuzzy_match: true | |
| fuzzy_match | No | If true and no exact FTS5 results found, returns typo-tolerant suggestions (fts mode only) | |
| is_personal | No | ||
| auto_correct | No | If true and fuzzy_match=true, automatically runs a new search with the best suggestion if distance <= 1 | |
| include_team | No | Include team entries in the search results | |
| issue_number | No | ||
| workspace_id | No | Optional workspace isolation identifier (e.g. "alpha"). Do not use numeric project IDs or "workspace" as the key. [ANTI-HALLUCINATION] If an entry is missing, it might belong to another workspace. Set workspace_id: "*" to search globally. | |
| include_facets | No | Include facet distributions (tags, entry types) for the search results | |
| project_number | No | ||
| semantic_weight | No | Weight multiplier for semantic results in hybrid search (default: 1.0) | |
| workflow_run_id | No | ||
| include_archived | No | ||
| include_highlights | No | Include snippets with matched terms highlighted (only applies to fts mode) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | Error code (e.g. VALIDATION_ERROR, INTERNAL_ERROR) | |
| count | No | ||
| error | No | Human-readable error message | |
| facets | No | Distribution counts when include_facets is true | |
| details | No | Additional error context | |
| entries | No | ||
| success | No | ||
| category | No | Error category (validation, query, connection, internal) | |
| degraded | No | True if the search degraded to a slower fallback method due to infrastructure failure | |
| highlights | No | FTS5 search snippets when include_highlights is true | |
| searchMode | No | ||
| suggestion | No | Suggested fix for the error | |
| next_cursor | No | Cursor for the next page of results | |
| recoverable | No | Whether the error is recoverable | |
| suggestions | No | Fuzzy matches when fuzzy_match=true and no exact results were found | |
| correctedQuery | No | The corrected query when auto_correct=true and a confident match was found | |
| aggregated_errors | No | Details of individual errors in a multi-step operation |