build_context
Retrieve and build context from memory URLs to continue conversations naturally, using semantic search to follow up on previous discussions or explore related topics.
Instructions
Build context from a memory:// URI to continue conversations naturally.
Use this to follow up on previous discussions or explore related topics.
Memory URL Format:
- Use paths like "folder/note" or "memory://folder/note"
- Pattern matching: "folder/*" matches all notes in folder
- Valid characters: letters, numbers, hyphens, underscores, forward slashes
- Avoid: double slashes (//), angle brackets (<>), quotes, pipes (|)
- Examples: "specs/search", "projects/basic-memory", "notes/*"
Timeframes support natural language like:
- "2 days ago", "last week", "today", "3 months ago"
- Or standard formats like "7d", "24h"
Input Schema
Name | Required | Description | Default |
---|---|---|---|
depth | No | ||
max_related | No | ||
page | No | ||
page_size | No | ||
project | No | ||
timeframe | No | 7d | |
url | Yes |
Input Schema (JSON Schema)
{
"$defs": {
"StringOrInt": {
"anyOf": [
{
"type": "string"
},
{
"type": "integer"
}
]
}
},
"properties": {
"depth": {
"anyOf": [
{
"$ref": "#/$defs/StringOrInt"
},
{
"type": "null"
}
],
"default": 1,
"title": "Depth"
},
"max_related": {
"default": 10,
"title": "Max Related",
"type": "integer"
},
"page": {
"default": 1,
"title": "Page",
"type": "integer"
},
"page_size": {
"default": 10,
"title": "Page Size",
"type": "integer"
},
"project": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Project"
},
"timeframe": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": "7d",
"title": "Timeframe"
},
"url": {
"maxLength": 2028,
"minLength": 1,
"title": "Url",
"type": "string"
}
},
"required": [
"url"
],
"type": "object"
}