AI Messages Grep By Session

Description

Searches all AiMessage records in an AI session using grep-like pattern matching. Optionally filters by sender type or name before grepping. Returns matching lines from each message and a summary.

Overview

Searches the Message field of every AiMessage in the specified AI session. Supports regex or literal patterns, case-insensitive matching, line numbers, context lines, invert-match, and a match cap. Use SenderType or SenderName to narrow the scope.

Example

{
  "function_call": {
    "name": "AIMessagesGrepBySession",
    "arguments": {
      "AiSessionId": "a1b2c3d4-...",
      "Pattern": "10\\.0\\.1\\.42",
      "SenderType": "Tool",
      "ShowLineNumbers": true
    }
  }
}
Scroll to Top