Tüm araçlar

create_draft

E-posta · macOS

Etki: yazma. 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ının inceleyip manuel olarak göndermesi için bir e-postayı Mail.app Drafts klasörüne kaydeder; hiçbir zaman göndermez. `to`/`subject` ile `body` veya `html_body` kullanarak yeni taslak oluşturun; ya da `reply_to_message_id`, `reply_all` ve `body` veya `html_body` ile yerel bir yanıt kaydedin. Yanıt Drafts posta kutusunu ve konuyu belirtir. Bir yanıt taslağında `threaded`: true, kaydedilen taslağın yeniden okunduğunu ve üstbilgilerinin kaynak iletiye başvurduğunu, yani konuşmanın içinde görüneceğini belirtir; false, iş parçacığı üstbilgileri OLMADAN kaydedildiğini belirtir ve bu uyarı kullanıcıya aktarılmalıdır; "unconfirmed", zamanında yeniden okunamadığı anlamına gelir. Birden çok hesaplı Mac'te taslağı ilgili hesabın Drafts klasörüne yerleştirmek için `account` (list_email_accounts aracındaki hesap adı) veya `from` iletin; aksi halde varsayılan hesaba gider. Örneğin bir PDF fiyat teklifini, dosyaları `attachments` içinde virgülle ayrılmış mutlak yollar olarak ileterek ekleyin. Yapay zekânın e-postayı yazmasını isteyen ancak kendisi göndermekte ısrar eden tedbirli kullanıcı için bunu kullanın. Gerçekten kaydetmek için confirm=true gerekir; aksi halde Mail.app'e dokunmadan önizleme döndürür.

Zorunlu girdiler

Bu platformun şeması zorunlu girdi bildirmiyor. İsteğe bağlı seçiciler veya çalışma zamanı gereksinimleri yine de olabilir.

İzinler ve onay

Şema açık bir onay parametresi bildirir. Önizlemeyi inceleyin ve gerçek işlemi platform sözleşmesine göre yetkilendirin.

İngilizce kanonik teknik şemamacOS
{
  "properties": {
    "account": {
      "description": "Account name (from list_email_accounts) whose Drafts folder receives the draft. Alternative to `from`.",
      "type": "string"
    },
    "attachments": {
      "description": "Files to attach, as comma-separated absolute paths (e.g. a PDF).",
      "type": "string"
    },
    "bcc": {
      "description": "BCC address(es), comma-separated.",
      "type": "string"
    },
    "body": {
      "description": "Plain-text body of the draft.",
      "type": "string"
    },
    "cc": {
      "description": "CC address(es), comma-separated.",
      "type": "string"
    },
    "confirm": {
      "default": "false",
      "description": "Must be true to actually save the draft. Without it, returns a preview of the recipient/sender, subject, and that the body will be saved.",
      "type": "boolean"
    },
    "from": {
      "description": "Sender address — on a multi-account Mac, selects which account's Drafts to use. Alternative to `account`.",
      "type": "string"
    },
    "html_body": {
      "description": "HTML body of the draft. Takes precedence over `body` when both are given.",
      "type": "string"
    },
    "reply_all": {
      "default": "false",
      "description": "For a reply draft, include all original recipients (reply-all) instead of just the sender.",
      "type": "boolean"
    },
    "reply_to_message_id": {
      "description": "Message id (from list_emails/search_emails) to draft a reply to, instead of a new message.",
      "type": "string"
    },
    "subject": {
      "description": "Subject line for a new draft. Ignored for reply drafts (they inherit the original subject).",
      "type": "string"
    },
    "to": {
      "description": "Recipient address(es) for a new draft, comma-separated. Omit for a reply draft (uses reply_to_message_id).",
      "type": "string"
    }
  },
  "type": "object"
}

Belge örneği

create_draft 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.

{
  "body": "Can we review the launch checklist on Tuesday?",
  "confirm": false,
  "subject": "Planning meeting",
  "to": "[email protected]"
}