search_history
Search past AI coding agent conversations for a keyword or topic and return matching message excerpts with context, optionally limited by repository path or specific agent sources.
Instructions
Search past AI coding agent conversations for a keyword or topic.
Returns matching message excerpts with surrounding context. sources: "all" or any of claude, codex, gemini, opencode, cursor. project: optional repository path to limit results to sessions run there. Prefer this over get_session to avoid token bloat.
Example: search_history("CUDA illegal address", sources=["codex", "claude"])
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"query": "<query>"
},
"name": "search_history"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| project | No | ||
| sources | No | all | |
| max_results | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |