Purpose
mem_timeline shows what happened before and after a specific observation, providing temporal context. Use this when you need to understand the sequence of events surrounding a particular memory.
This is useful for understanding:
- What led up to a specific change or decision
- What happened as a result of an action
- The flow of work during a coding session
Parameters
Observation ID from
mem_search resultsNumber of observations to show before the target (max: 10)
Number of observations to show after the target (max: 10)
Response Format
Returns a structured timeline with three sections: Example response:- Observation ID in brackets
- Date (YYYY-MM-DD)
- Tool name
- Compressed summary of the observation
Usage Example
Get context around a specific observation:Tips
- Use after search: Get the observation_id from
mem_searchresults first - Understand sequences: Perfect for understanding multi-step debugging or feature development
- Adjust window size: Use larger
before/aftervalues for complex workflows - Session boundaries: Timeline shows observations in chronological order, even across different days
- Invalid IDs: If the observation_id doesn’t exist, you’ll get an error message