本文へスキップ
すべてのツール

reply_email

メール · macOS

効果: 送信. 状態: 条件付き提供.

「条件付き提供」は、バージョン、プラットフォーム、権限、アカウント、設定に依存する可能性を示し、すべての環境で有効という意味ではありません。

macOS

目的

ユーザーが Mac の Apple メールにあるメールに返信したいときに使います(メッセージ ID は list_emails/search_emails から)。送信前にプレビューします。送信される返信には、あなたの文章に続けて元メールのプレーンテキスト引用("On <date>, <sender> wrote:" と、元の各行の先頭に `> ` を付けたもの)が入り、同じスレッドに送られます。`html_body` はプレーンテキストに変換されます。元メールに読み取れるテキストがない場合は、あなたの文章だけで返信が送信され、応答にその旨が示されます(`quoted_original: false` と、伝えるべき警告)。送信せずに返信を Drafts に残すには、`save_as_draft: true` を渡します。下書きは正しいスレッドに、返信/全員に返信の宛先とともに保存され、内容は同じです(Mail のスタイル付き引用ではありません)。`send` は一切呼び出されません。どちらの経路でも、Mail が文章または引用を保持しなかった場合、呼び出しは失敗し、何も送信も保存もされません。`reply_to_message_id` を指定した `create_draft` でも同種の下書きが残ります。m365_list_emails で得た Microsoft 365 のメッセージ ID には m365_reply_email を使ってください。`account`(list_emails/search_emails の結果から)を渡すと、他のアカウントの走査を省略でき、複数アカウントの Mac でのタイムアウトを避けられます。

必須入力

入力名はツールが要求する正確な形式のままです。英語の正規技術定義は下の展開可能なスキーマにあります。

権限と確認

スキーマには明示的な確認パラメータがあります。プレビューを確認し、プラットフォーム契約に従って実操作を承認してください。

英語の正規技術スキーマ — macOS
{
  "properties": {
    "account": {
      "description": "Account (from the listing) the message is in — pass it to skip scanning other accounts and avoid multi-account timeouts.",
      "type": "string"
    },
    "body": {
      "description": "Plain-text reply body.",
      "type": "string"
    },
    "confirm": {
      "default": "false",
      "description": "Preview first: the first call previews the reply; call again with confirm=true to actually send it — or to save it when save_as_draft is set.",
      "type": "boolean"
    },
    "html_body": {
      "description": "HTML reply body. Takes precedence over `body` when both are given. It is converted to plain text: a reply is sent, or saved, as text with a plain-text quote of the original.",
      "type": "string"
    },
    "message_id": {
      "description": "Id of the message to reply to (from list_emails/search_emails).",
      "type": "string"
    },
    "reply_all": {
      "default": "false",
      "description": "Reply to all original recipients instead of just the sender.",
      "type": "boolean"
    },
    "save_as_draft": {
      "default": "false",
      "description": "Save the reply in Drafts instead of sending it: your text followed by a plain-text quote of the original, in the right thread, with the Reply/Reply-All recipients. Nothing is sent on this path.",
      "type": "boolean"
    }
  },
  "required": [
    "message_id"
  ],
  "type": "object"
}

ドキュメント例

reply_email のドキュメント例です。この例は実行しないでください。表示される引数は架空のデータセットに属します。実際に呼び出す前に実在する識別子を確認し、承認を得てください。

{
  "body": "Can we review the launch checklist on Tuesday?",
  "confirm": false,
  "message_id": "demo-message-001"
}