search_messages
Search a project's mail subjects and bodies without marking messages read; filter and rank matches by relevance or recency.
Instructions
Search subjects and bodies across a project, returning {result, next_cursor?} without marking mail read. All query words must match; filters narrow those matches. Results rank by best match unless ranking:'recency'. Each excerpt has up to 512 Unicode code points and >>>matched text<<< markers; include_body_md adds full bodies. Keep query, filters and ranking unchanged when passing next_cursor as cursor; no next_cursor means the last page. Use fetch_inbox for your received unread mail, or summarize_thread for a thread's participants and recent messages.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Positive page size; default 20, capped at 1000. | |
| query | Yes | Words that must all appear; punctuation is ignored. | |
| since | No | ISO-8601 | |
| until | No | ISO-8601 | |
| cursor | No | The next_cursor of the previous page. | |
| ranking | No | 'recency' for newest first; omit for best match first. | |
| thread_id | No | Only messages in this thread. | |
| importance | No | Comma-separated levels to keep: low, normal, high, urgent. | |
| project_key | Yes | Absolute path of the repository's primary checkout. | |
| sender_name | No | Only messages from this agent. | |
| include_body_md | No | Include each full body; default false. |