m9k_context
Retrieve surrounding conversation chunks to understand context and flow after search results, helping analyze dialogue sequences within sessions.
Instructions
Get a chunk with surrounding context (adjacent chunks in the same session). Use after m9k_search to understand the conversation flow.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chunkId | Yes | The chunk ID to get context for | |
| window | No | Number of chunks before/after to include |
Implementation Reference
- src/tools/search.ts:69-90 (registration)Tool definition and handler for m9k_context within registerSearchTools.
server.registerTool( 'm9k_context', { description: 'Get a chunk with surrounding context (adjacent chunks in the same session). Use after m9k_search to understand the conversation flow.', inputSchema: { chunkId: z.string().describe('The chunk ID to get context for'), window: z .number() .int() .min(1) .max(10) .default(3) .describe('Number of chunks before/after to include'), }, annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false, }, },