search_messages
Search locally cached Microsoft Teams messages by body, subject, or sender via SQLite full-text search; scope by conversation, channel, or title, and fetch recent history first if not cached.
Instructions
Full-text search cached messages locally using SQLite FTS5 (no Microsoft Graph request). Only finds messages already fetched into cache.db; call get_messages first if recent history is not cached yet. Returns { query, hits }.
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_messages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of search hits to return (1..1000, default 50). | |
| query | Yes | Full-text search query (matches cached message body, subject, and sender). | |
| target | No | Optional cached conversation conv_key, "Team/Channel", or unique title substring to scope the search. |