send_email
メール · macOS
効果: 送信. 状態: 条件付き提供.
「条件付き提供」は、バージョン、プラットフォーム、権限、アカウント、設定に依存する可能性を示し、すべての環境で有効という意味ではありません。
macOS
目的
Mac の Apple Mail に設定されたアカウントからメールを送るときに使います。Mail.app で作成・送信し、プレーンテキストと HTML 本文に対応します。Mail.app にない Microsoft 365 アカウントには m365_send_email を使います。既定以外の送信元には `from`、添付には絶対ファイルパスをカンマ区切りにした `attachments` を渡します。
必須入力
tosubject
入力名はツールが要求する正確な形式のままです。英語の正規技術定義は下の展開可能なスキーマにあります。
権限と確認
スキーマには明示的な確認パラメータがあります。プレビューを確認し、プラットフォーム契約に従って実操作を承認してください。
- このプラットフォームでは、ユーザーが許可したアプリ、アカウント、リソースだけを使用してください。接続と権限の要件については、このツールのプラットフォーム固有の説明を参照してください。このカタログは、追加の OAuth スコープや OS 権限があるとは主張しません。
英語の正規技術スキーマ — macOS
{
"properties": {
"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. Use this OR html_body; if both are given, html_body wins.",
"type": "string"
},
"cc": {
"description": "CC address(es), comma-separated.",
"type": "string"
},
"confirm": {
"default": "false",
"description": "Safety gate: the call only PREVIEWS (nothing is sent) unless confirm:true. Set true to actually send.",
"type": "boolean"
},
"from": {
"description": "Sender address — on a multi-account Mac, selects which configured Mail.app account sends. Omit to use Mail's default account.",
"type": "string"
},
"html_body": {
"description": "HTML body. Takes precedence over `body` when both are set.",
"type": "string"
},
"subject": {
"description": "Subject line.",
"type": "string"
},
"to": {
"description": "Recipient address(es), comma-separated for multiple.",
"type": "string"
}
},
"required": [
"to",
"subject"
],
"type": "object"
}ドキュメント例
send_email のドキュメント例です。この例は実行しないでください。表示される引数は架空のデータセットに属します。実際に呼び出す前に実在する識別子を確認し、承認を得てください。
{
"body": "Can we review the launch checklist on Tuesday?",
"confirm": false,
"subject": "Planning meeting",
"to": "[email protected]"
}