basic-memory
search
Search across all content in basic-memory, including documents and entities
Input Schema
Name | Required | Description | Default |
---|---|---|---|
page | No | ||
page_size | No | ||
query | Yes |
Input Schema (JSON Schema)
{
"$defs": {
"SearchItemType": {
"description": "Types of searchable items.",
"enum": [
"entity",
"observation",
"relation"
],
"title": "SearchItemType",
"type": "string"
},
"SearchQuery": {
"description": "Search query parameters.\n\nUse ONE of these primary search modes:\n- permalink: Exact permalink match\n- permalink_match: Path pattern with *\n- text: Full-text search of title/content (supports boolean operators: AND, OR, NOT)\n\nOptionally filter results by:\n- types: Limit to specific item types\n- entity_types: Limit to specific entity types\n- after_date: Only items after date\n\nBoolean search examples:\n- \"python AND flask\" - Find items with both terms\n- \"python OR django\" - Find items with either term\n- \"python NOT django\" - Find items with python but not django\n- \"(python OR flask) AND web\" - Use parentheses for grouping",
"properties": {
"after_date": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "After Date"
},
"entity_types": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"title": "Entity Types"
},
"permalink": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Permalink"
},
"permalink_match": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Permalink Match"
},
"text": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Text"
},
"title": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Title"
},
"types": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/SearchItemType"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"title": "Types"
}
},
"title": "SearchQuery",
"type": "object"
}
},
"properties": {
"page": {
"default": 1,
"title": "Page",
"type": "integer"
},
"page_size": {
"default": 10,
"title": "Page Size",
"type": "integer"
},
"query": {
"$ref": "#/$defs/SearchQuery"
}
},
"required": [
"query"
],
"title": "searchArguments",
"type": "object"
}