teams_wait_for_messages
Waits for new incoming Microsoft Teams messages after a given sequence number, optionally in one chat, up to 60 seconds, and returns events plus the next sequence to resume polling.
Instructions
New incoming messages in watched chats after event number after_seq, waiting up to wait_seconds (max 60) for one. Without after_seq, only messages from now on. Returns events and seq: pass seq as after_seq next time. With chat, other chats' messages are skipped and the answer may be empty before wait_seconds.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "teams_wait_for_messages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chat | No | only this chat (title or id) | |
| after_seq | No | ||
| wait_seconds | No |