Search and analyze session logs (conversation history) using text search and filtering. Use when user asks about prior conversations, what was discussed before, or historical context.
Search your complete conversation history stored in session files. Use this when a user references older conversations or asks what was said before.
Use this skill when the user asks about:
Session logs are stored at:
/sdcard/.androidforclaw/sessions/Each session file contains:
// Use list_dir tool to see session files
list_dir(path: "/sdcard/.androidforclaw/sessions")
Returns list of session files with timestamps.
// Use read_file tool to read specific session
read_file(path: "/sdcard/.androidforclaw/sessions/session_20260308_143022.json")
When searching session content:
read_file// Get all session files
list_dir(path: "/sdcard/.androidforclaw/sessions")
// Read the most recent sessions first
read_file(path: "/sdcard/.androidforclaw/sessions/session_YYYYMMDD_HHMMSS.json")
Look for:
Format results showing:
User asks: "What did we discuss about mobile testing yesterday?"
Your response:
Found 2 conversations about mobile testing yesterday:
1. **2026-03-07 14:30** - Mobile Testing Setup
- Discussed test automation frameworks
- Set up Espresso test environment
- Ran 5 UI tests successfully
2. **2026-03-07 16:45** - Bug Investigation
- Debugged login flow issue
- Used screenshot tool to capture error
- Fixed null pointer exception
Example JavaScript for filtering:
// Parse session file and search
const session = JSON.parse(sessionContent);
const results = session.messages.filter(msg => {
const text = msg.content.toLowerCase();
return text.includes(keyword1) || text.includes(keyword2);
});
return results;
{
"sessionId": "session_20260308_143022",
"startTime": "2026-03-08T14:30:22Z",
"messages": [
{
"role": "user",
"content": "Test the login flow",
"timestamp": "2026-03-08T14:30:22Z"
},
{
"role": "assistant",
"content": "I'll test the login flow...",
"timestamp": "2026-03-08T14:30:25Z"
},
{
"role": "tool",
"name": "screenshot",
"result": "...",
"timestamp": "2026-03-08T14:30:30Z"
}
],
"summary": "Tested login flow, found 2 issues",
"endTime": "2026-03-08T14:45:00Z"
}
Currently planned:
Remember: Session logs are a powerful memory system. Use them to provide context-aware assistance based on past conversations.