filter_sessions
Filter AI coding sessions by metadata like date range, provider, model, project, language, or minimum tool-call counts. Retrieve exact matches from Postgres without semantic search.
Instructions
List sessions by metadata using authoritative Postgres filters, without semantic search.
Use when the user provides no semantic text query and instead asks for sessions in a date window or matching metadata such as provider, model, project, language, category, minimum turn/tool-call counts, or code changes. Do not invent search text for these requests and do not use this tool when the user asks for sessions similar to a topic; use search_sessions.
Use provider="codex" for Codex sessions whose stored model names are in the GPT family. date_from is inclusive and date_to is exclusive; both are YYYY-MM-DD ingestion dates. scope controls whose sessions are listed: "mine", "team", or "org". Omit it to use the widest scope permitted by the organization's sharing settings. Results are capped at 100.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| model | No | ||
| scope | No | ||
| date_to | No | ||
| language | No | ||
| provider | No | ||
| date_from | No | ||
| file_path | No | ||
| min_turns | No | ||
| model_family | No | ||
| project_name | No | ||
| min_tool_calls | No | ||
| has_code_changes | No | ||
| session_category | No | ||
| include_changed_files | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||