grep_messages
Search session messages by keyword to retrieve earlier discussions about specific topics, decisions, or findings.
Instructions
Search session messages by keyword. FTS5 full-text search across all messages.
AUTOMATIC TRIGGERS - Call this when:
Looking for a specific topic, decision, or finding mentioned earlier
You don't know the sequence number but remember keywords
Checking if a topic has been discussed in the session
SEARCH TIPS: Use simple keywords. FTS5 supports: "word1 word2" (AND), "word1 OR word2". Avoid complex syntax - use plain phrases.
PARAMETERS:
session_id: Session to search
pattern: Search term (use simple keywords)
agent_id: Your agent ID (must belong to the session)
limit: Max results (default: 50, max: 100)
msg_types: Filter by message types like ["result", "artifact"] (optional)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| pattern | Yes | ||
| agent_id | Yes | ||
| msg_types | No | ||
| session_id | Yes |