create_message_alert
Create a 定期依頼 (scheduled request): a cron periodically checks it and reports into a dedicated chat thread. Two modes: (1) watch-only — omit instruction/run_hour; the Gmail query is checked hourly, notifying on new hits (unchanged legacy behavior). (2) AI-driven — set BOTH instruction (what to do, natural language) and run_hour (0-23, the user's local hour); it then runs once a day at that hour as a full chat-agent turn (search/summarize/etc.), reporting the result into the per-request thread. Query conventions: use from: only when the sender is explicit; keep subject/body words as bare keywords (no subject:); append newer_than:1d unless a window is specified.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tz | No | IANA timezone for deciding whether run_hour has already passed today. Defaults to Asia/Tokyo. | |
| name | Yes | Display name for the request, e.g. "田中さんからの重要メール". | |
| query | Yes | Gmail-syntax query the request watches. | |
| accounts | No | Account labels to watch. Omit for all accounts. | |
| run_hour | No | Local hour (0-23) to run once a day. Required when instruction is set. | |
| nl_source | No | The original natural-language request, if any. | |
| instruction | No | What the AI should do when it runs (natural language). Requires run_hour when set; omit both for a watch-only rule checked hourly (unchanged legacy behavior). |