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

whatsapp_save_media

WhatsApp · macOS · Windows

効果: 書き込み. 状態: 条件付き提供.

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

macOS

目的

WhatsApp のメッセージ 1 件のメディア(PDF、DOCX、XLSX などのドキュメント、画像、動画、ボイスメッセージ/音声)を、ローカルフォルダにファイルとして保存します。chat_id と message_id は、whatsapp_read_messages または whatsapp_search_messages から取得します(`media` フィールドが設定されているメッセージ)。ファイルを置き換えることはありません。名前がすでに使われている場合は «name (2).ext» として保存し、その旨を伝えます。

必須入力

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

権限と確認

スキーマには明示的な確認パラメータがありません。これは無許可の操作を認めるものではありません。効果を確認し、承認を得てください。

英語の正規技術スキーマ — macOS
{
  "properties": {
    "account": {
      "description": "Which linked WhatsApp account to use: its label or id from whatsapp_list_accounts. Leave it out to use the default account.",
      "type": "string"
    },
    "chat_id": {
      "description": "Chat ID of the message, from whatsapp_read_messages",
      "type": "string"
    },
    "destination": {
      "description": "Folder to save the file into. Defaults to the Downloads folder.",
      "type": "string"
    },
    "message_id": {
      "description": "message_id of the message that carries the media, from whatsapp_read_messages",
      "type": "string"
    }
  },
  "required": [
    "chat_id",
    "message_id"
  ],
  "type": "object"
}

ドキュメント例

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

{
  "chat_id": "12025550123@s.whatsapp.net",
  "message_id": "3EB0DEMO0002"
}

Windows

目的

WhatsApp のメッセージ 1 件のメディア(PDF、DOCX、XLSX などのドキュメント、画像、動画、ボイスメッセージ/音声)を、ローカルフォルダにファイルとして保存します。chat_id と message_id は、whatsapp_read_messages または whatsapp_search_messages から取得します(`media` フィールドが設定されているメッセージ)。ファイルを置き換えることはありません。名前がすでに使われている場合は «name (2).ext» として保存し、その旨を伝えます。

必須入力

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

権限と確認

スキーマには明示的な確認パラメータがありません。これは無許可の操作を認めるものではありません。効果を確認し、承認を得てください。

英語の正規技術スキーマ — Windows
{
  "properties": {
    "account": {
      "description": "Which linked WhatsApp account to use: its label or id from whatsapp_list_accounts. Leave it out to use the default account.",
      "type": "string"
    },
    "chat_id": {
      "description": "Chat ID of the message, from whatsapp_read_messages",
      "type": "string"
    },
    "destination": {
      "description": "Folder to save the file into. Defaults to the Downloads folder.",
      "type": "string"
    },
    "message_id": {
      "description": "message_id of the message that carries the media, from whatsapp_read_messages",
      "type": "string"
    }
  },
  "required": [
    "chat_id",
    "message_id"
  ],
  "type": "object"
}

ドキュメント例

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

{
  "chat_id": "12025550123@s.whatsapp.net",
  "message_id": "3EB0DEMO0002"
}