跳到正文
所有工具

whatsapp_send_poll

WhatsApp · macOS · Windows

效果: 发送. 状态: 受限可用.

“受限可用”表示工具可能取决于版本、平台、权限、账户或配置,并不表示它在所有安装中都已启用。

macOS

用途

向 WhatsApp 聊天/群组发送投票——聊天中的每个人都会看到。chat_id 必须来自 whatsapp_list_chats / whatsapp_list_groups。这是一项写入操作:首次调用(confirm=false)返回预览而不发送;设置 confirm=true 才会实际发送。请提供 2–12 个选项;设置 multi>1 可允许选择多项。之后用 whatsapp_read_poll 读取结果(其票数仅供参考——见该工具)。

必填输入

输入名称会严格保持工具要求的形式。下方可展开的架构中保留英文规范技术定义。

权限与确认

架构声明了明确的确认参数。请检查预览,并按此平台的契约授权实际操作。

英文规范技术架构 — 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/group JID from whatsapp_list_chats/whatsapp_list_groups",
      "type": "string"
    },
    "confirm": {
      "description": "Must be true to actually send. Without it, returns a preview.",
      "type": "boolean"
    },
    "multi": {
      "description": "Max options a voter may pick (1 = single-select, default 1)",
      "type": "integer"
    },
    "options": {
      "description": "2–12 poll options",
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "question": {
      "description": "Poll question",
      "type": "string"
    }
  },
  "required": [
    "chat_id",
    "question",
    "options"
  ],
  "type": "object"
}

文档示例

whatsapp_send_poll 的文档示例。请勿执行此示例。所示参数属于虚构数据集;在实际调用前,请解析真实标识符并获得授权。

{
  "chat_id": "12025550123@s.whatsapp.net",
  "confirm": false,
  "options": [
    "Tuesday",
    "Wednesday"
  ],
  "question": "Which day works for the planning meeting?"
}

Windows

用途

向 WhatsApp 聊天/群组发送投票——聊天中的每个人都会看到。chat_id 必须来自 whatsapp_list_chats / whatsapp_list_groups。这是一项写入操作:首次调用(confirm=false)返回预览而不发送;设置 confirm=true 才会实际发送。请提供 2–12 个选项;设置 multi>1 可允许选择多项。之后用 whatsapp_read_poll 读取结果(其票数仅供参考——见该工具)。

必填输入

输入名称会严格保持工具要求的形式。下方可展开的架构中保留英文规范技术定义。

权限与确认

架构声明了明确的确认参数。请检查预览,并按此平台的契约授权实际操作。

英文规范技术架构 — 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/group JID from whatsapp_list_chats/whatsapp_list_groups",
      "type": "string"
    },
    "confirm": {
      "description": "Must be true to actually send. Without it, returns a preview.",
      "type": "boolean"
    },
    "multi": {
      "description": "Max options a voter may pick (1 = single-select, default 1)",
      "type": "integer"
    },
    "options": {
      "description": "2–12 poll options",
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "question": {
      "description": "Poll question",
      "type": "string"
    }
  },
  "required": [
    "chat_id",
    "question",
    "options"
  ],
  "type": "object"
}

文档示例

whatsapp_send_poll 的文档示例。请勿执行此示例。所示参数属于虚构数据集;在实际调用前,请解析真实标识符并获得授权。

{
  "chat_id": "12025550123@s.whatsapp.net",
  "confirm": false,
  "options": [
    "Tuesday",
    "Wednesday"
  ],
  "question": "Which day works for the planning meeting?"
}