본문으로 건너뛰기
모든 도구

m365_create_draft

Microsoft 365 · macOS · Windows

효과: 쓰기. 상태: 조건부 제공.

‘조건부 제공’은 도구가 버전, 플랫폼, 권한, 계정 또는 설정에 따라 달라질 수 있음을 뜻하며 모든 설치에서 활성화되었다는 의미는 아닙니다.

macOS

목적

사용자가 Microsoft 365 / Outlook 계정에서 보내지 않고 이메일을 준비해 두려고 할 때 사용합니다. 해당 계정의 임시 보관함 폴더에 임시 보관 메시지를 저장하여 사용자가 Outlook에서 검토하고 보낼 수 있게 합니다. 아무것도 보내지 않습니다. 새 메시지는 subject와 body를 받고(to와 cc는 선택), 임시 보관 답장은 reply_to_id(m365_list_emails, m365_search_emails 또는 m365_read_email의 메시지 ID)와 body만 받으며 받는 사람과 제목은 원본에서 가져옵니다. 먼저 미리보기를 표시하며, 임시 보관 메시지를 저장하려면 confirm=true로 설정하세요. 두 번 확인하면 임시 보관 메시지가 두 개 저장됩니다. 첨부 파일은 지원하지 않습니다. Mail.ReadWrite 권한이 있는 연결된 Microsoft 365 계정이 필요합니다. 이 도구가 생기기 전에 연결한 계정은 다시 연결할 때까지 consent_required로 응답합니다. 바로 보내려면 m365_send_email 또는 m365_reply_email을, Mac의 Mail 앱에 임시 보관 메시지를 만들려면 create_draft를 사용하세요.

필수 입력

입력 이름은 도구가 요구하는 정확한 형태로 유지됩니다. 영문 정식 기술 정의는 아래 펼칠 수 있는 스키마에 있습니다.

권한 및 확인

스키마에 명시적 확인 매개변수가 있습니다. 미리보기를 검토하고 플랫폼 계약에 따라 실제 작업을 승인하세요.

영문 정식 기술 스키마 — macOS
{
  "properties": {
    "account": {
      "description": "Which connected Microsoft 365 account to use: its email (UPN), its id from list_m365_accounts, or its display name when unique. Leave it out to use the default account.",
      "type": "string"
    },
    "body": {
      "description": "The text of the draft, as plain text. Line breaks are kept.",
      "type": "string"
    },
    "cc": {
      "description": "CC email addresses, separated by commas (optional; not with reply_to_id).",
      "type": "string"
    },
    "confirm": {
      "description": "Set to true to save the draft (default: shows a preview only). Nothing is sent in either case.",
      "type": "boolean"
    },
    "reply_to_id": {
      "description": "Message ID to draft a reply to (from m365_list_emails, m365_search_emails or m365_read_email). Leave it out for a new message.",
      "type": "string"
    },
    "subject": {
      "description": "Subject, one line. Required for a new message; not with reply_to_id.",
      "type": "string"
    },
    "to": {
      "description": "Recipient email addresses, separated by commas (optional; not with reply_to_id).",
      "type": "string"
    }
  },
  "required": [
    "body"
  ],
  "type": "object"
}

문서 예시

m365_create_draft 문서 예시입니다. 이 예시를 실행하지 마세요. 표시된 인수는 가상 데이터 세트에 속합니다. 실제 호출 전에 실제 식별자를 확인하고 승인을 받으세요.

{
  "body": "Can we review the launch checklist on Tuesday?",
  "confirm": false,
  "subject": "Planning meeting",
  "to": "alex@example.com"
}

Windows

목적

Microsoft 365 계정의 임시 보관함 폴더에 이메일 임시 보관 메시지를 만들어 직접 검토하고 보낼 수 있게 합니다. 절대 보내지 않습니다. 먼저 미리보기를 표시하며, 임시 보관 메시지를 만들려면 confirm=true로 설정하세요. 두 번 확인하면 임시 보관 메시지가 두 개 만들어집니다. reply_to_id를 지정하면 임시 보관 메시지는 해당 메시지에 대한 답장이 되며 받는 사람과 제목이 유지됩니다(to, cc, subject는 생략). 이 도구가 생기기 전에 연결한 계정은 임시 보관 메시지를 허용하려면 다시 연결해야 합니다(connect_m365_account).

필수 입력

입력 이름은 도구가 요구하는 정확한 형태로 유지됩니다. 영문 정식 기술 정의는 아래 펼칠 수 있는 스키마에 있습니다.

권한 및 확인

스키마에 명시적 확인 매개변수가 있습니다. 미리보기를 검토하고 플랫폼 계약에 따라 실제 작업을 승인하세요.

영문 정식 기술 스키마 — Windows
{
  "properties": {
    "account": {
      "description": "Which connected Microsoft 365 account to use: its email (UPN), its id from list_m365_accounts, or its display name when unique. Leave it out to use the default account.",
      "type": "string"
    },
    "body": {
      "description": "The text of the draft, as plain text. Line breaks are kept.",
      "type": "string"
    },
    "cc": {
      "description": "CC recipients (optional, comma-separated)",
      "type": "string"
    },
    "confirm": {
      "description": "Set to true to create the draft (default: shows preview only)",
      "type": "boolean"
    },
    "reply_to_id": {
      "description": "Message ID to draft a reply to (optional)",
      "type": "string"
    },
    "subject": {
      "description": "Subject. Required unless reply_to_id is given.",
      "type": "string"
    },
    "to": {
      "description": "Recipient email address (comma-separated for multiple). Optional: a draft may have no recipient yet.",
      "type": "string"
    }
  },
  "required": [
    "body"
  ],
  "type": "object"
}

문서 예시

m365_create_draft 문서 예시입니다. 이 예시를 실행하지 마세요. 표시된 인수는 가상 데이터 세트에 속합니다. 실제 호출 전에 실제 식별자를 확인하고 승인을 받으세요.

{
  "body": "Can we review the launch checklist on Tuesday?",
  "confirm": false,
  "subject": "Planning meeting",
  "to": "alex@example.com"
}