İçeriğe geç
Tüm araçlar

search_emails

E-posta · macOS

Etki: okuma. Durum: koşullu kullanılabilir.

“Koşullu kullanılabilirlik”, aracın sürüme, platforma, izinlere, hesaba veya yapılandırmaya bağlı olabileceğini belirtir. Her kurulumda etkin olduğu anlamına gelmez.

macOS

Amaç

Kullanıcı bu Mac'te belirli e-postaları bulmak istediğinde bunu kullanın (Apple Mail; Mail.app'e eklenmiş her hesap). Varsayılan olarak konu ve göndereni arar; ileti gövdesinde de aramak için scope="body" veya scope="all" iletin (yanıttaki search_coverage alanına bakın: yerel dizini hâlâ oluşturulurken bir gövde araması kısmi olabilir). include_trash=true iletilmedikçe veya mailbox birini adlandırmadıkça Çöp ve Önemsiz klasörleri dışarıda bırakılır. Mail.app'e EKLENMEMİŞ bir Microsoft 365 posta kutusu için m365_search_emails kullanın. ÖNEMLİ: 2 veya daha fazla hesabı olan makinelerde account=<name> (list_email_accounts çıktısından) ile çağırın. Onsuz ve hızlı dizin yanıt veremediğinde, search_emails tüm hesapları taramak yerine hesap listesini döndürür: her hesabı tek çağrıda taramanın zaman sınırı yoktur ve Mail'i diğer istekler için de kilitleyebilir. Tam olarak 1 hesap bundan etkilenmez.

Zorunlu girdiler

Girdi adları aracın istediği biçimde aynen korunur. İngilizce kanonik teknik tanımlar aşağıdaki açılır şemadadır.

İzinler ve onay

Şema açık bir onay parametresi bildirmez. Bu, izinsiz işlem yapma yetkisi vermez; etkiyi inceleyin ve yetki alın.

İngilizce kanonik teknik şema — macOS
{
  "properties": {
    "account": {
      "description": "Mail.app account to search (from list_email_accounts). On a Mac with 2+ accounts this is effectively required: without it, and when the fast index cannot answer, the tool returns the account list instead of scanning them all.",
      "type": "string"
    },
    "include_trash": {
      "default": "false",
      "description": "Also return matches from trash and junk folders. Default false: a search of every folder leaves them out. Not needed when mailbox names the folder.",
      "type": "boolean"
    },
    "limit": {
      "default": "20",
      "description": "Maximum number of matches to return.",
      "maximum": 100,
      "minimum": 1,
      "type": "integer"
    },
    "mailbox": {
      "description": "Restrict the search to one folder, by name (see list_email_folders). Defaults to every folder of the account.",
      "type": "string"
    },
    "query": {
      "description": "What to look for. Matched against subject and sender, or also the body when scope is \"body\" or \"all\".",
      "type": "string"
    },
    "recipient": {
      "description": "Only messages sent to this address or name (To or Cc), e.g. one of the user's own aliases. Narrows the matches of query.",
      "type": "string"
    },
    "scope": {
      "default": "metadata",
      "description": "\"metadata\" (default, subject+sender — fast, unchanged behavior), \"body\" (message body only, via a local index — see search_coverage in the response), or \"all\" (subject+sender+body).",
      "type": "string"
    }
  },
  "required": [
    "query"
  ],
  "type": "object"
}

Belge örneği

search_emails için örnek belge. Bu örneği çalıştırmayın. Gösterilen bağımsız değişkenler kurgusal bir veri kümesine aittir; gerçek bir çağrıdan önce gerçek tanıtıcıları bulun ve izin alın.

{
  "query": "launch checklist"
}