search_by_metadata
Filter stored agent memories by metadata fields like type, priority, status, user, or custom attributes. Retrieves matching memories with pagination, enabling targeted lookup without semantic search.
Instructions
Search memories by metadata fields without semantic search.
OPTIONAL: 'user_id' OR 'agent_id' (if neither provided, auto-detects current user) OPTIONAL: 'type' - filter by metadata type (e.g., "decision", "preference", "task_completion") OPTIONAL: 'priority' - filter by priority (e.g., "high", "medium", "low") OPTIONAL: 'status' - filter by status (e.g., "complete", "in_progress", "blocked") OPTIONAL: 'custom_filters' - dict of additional metadata key-value pairs to match OPTIONAL: 'page' - page number for pagination (default: 1) OPTIONAL: 'page_size' - results per page (default: 50, max: 100)
Returns: Memories matching all specified filters with pagination.
Examples:
Find decisions: {"type": "decision"}
Find high priority: {"priority": "high"}
Find blocked items: {"status": "blocked"}
Custom filter: {"custom_filters": {"category": "api"}}
Paginated: {"type": "documentation", "page": 2, "page_size": 20}
Note: Uses native Qdrant filtering when available, falls back to post-filtering for other backends.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | ||
| type | No | ||
| status | No | ||
| user_id | No | ||
| verbose | No | ||
| agent_id | No | ||
| priority | No | ||
| page_size | No | ||
| custom_filters | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |