search_unified
Search both short-term and long-term memories at once with unified ranking and pagination to locate specific recollections.
Instructions
Search across both STM and LTM with unified ranking.
Pagination: Results are paginated to help you find specific memories across
large result sets from both short-term and long-term memory. Use page and page_size
to navigate through results. If a search term isn't found on the first page,
increment page to see more results.
Args: query: Text query to search for (max 50,000 chars). tags: Filter by tags (max 50 tags). limit: Maximum total results before pagination (1-100). stm_weight: Weight multiplier for STM results (0.0-2.0). ltm_weight: Weight multiplier for LTM results (0.0-2.0). window_days: Only include STM memories from last N days (1-3650). min_score: Minimum score threshold for STM memories (0.0-1.0). page: Page number to retrieve (1-indexed, default: 1). page_size: Number of memories per page (default: 10, max: 100).
Returns: Dictionary with paginated results including: - results: List of matching memories from STM and LTM for current page - pagination: Metadata (page, page_size, total_count, total_pages, has_more)
Examples: # Get first page (10 results) search_unified(query="architecture", page=1, page_size=10)
# Get next page
search_unified(query="architecture", page=2, page_size=10)Raises: ValueError: If any input fails validation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | ||
| tags | No | ||
| limit | No | ||
| query | No | ||
| min_score | No | ||
| page_size | No | ||
| ltm_weight | No | ||
| stm_weight | No | ||
| window_days | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||