search_in_context
Find specific discussions within a known session by searching with natural language queries and returning each match with surrounding context events from the timeline, enabling reading of full conversation flow without manual pagination.
Instructions
Search within a specific session and return matches WITH surrounding conversation context. This is the tool you want when you know WHICH session to look in but need to FIND a specific discussion or event. Returns each semantic match plus N events before/after it from the timeline, so you can read the full conversation flow. Much more efficient than paginating get_session_timeline manually.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | Yes | Session ID (prefix match) | |
| query | Yes | Natural language query to find within the session | |
| context_events | No | Number of events to include before AND after each match (default 5) | |
| limit | No | Max number of matches to return with context (default 3) | |
| event_type | No | Optional: filter matches to a single event type | |
| max_chars | No | Max total output characters (default 20000) |