用途:Pushary 作为 Claude Cowork 的自定义连接器,让会话在需要人工决策时通过手机推送联系用户,用户在锁屏上直接作答。资料建议主动使用,不要等用户来问。
主要能力:ask_user 用于需要决策或澄清时提问,type 可选 confirm(是/否)、select(固定选项)、input(自由文本);send_notification 用于任务完成或出错时通知,context.type 设为 task_complete 或 error;wait_for_answer 轮询返回的 linkedCorrelationId 等待回答;cancel_question 撤回不再需要的问题。
使用方式:执行有风险或不可逆操作(删除、覆盖文件、花钱、对外发送、批量修改)前,先用 ask_user 的 confirm 等待批准。任务完成时用 send_notification 附简短变更摘要,context.type 设为 task_complete。若用户可能回复,在结束前用 send_notification 并设置 context.askQuestion 为 input 问题,再用 wait_for_answer 轮询 linkedCorrelationId,在同一会话中处理回答。长任务或用户可能离开时,优先用 send_notification 的 context.askQuestion 而非阻塞式 ask_user。ask_user 超时后可用同一问题 id 调用一次 wait_for_answer;仍待处理则先取消,若取消返回 handoffAction: "stop" 则停止,否则若返回 false 则轮询 1 秒并采纳先到的回答。每次调用传 agentName 为 Claude Cowork - <任务名>。
适用场景:需要决策、澄清、风险操作批准、任务完成通知、错误告知,以及其他技能要求用户确认但实际无人盯屏的情况。
限制:连接器是会话与手机之间的唯一通道,只传递主动请求的内容;普通完成通知是单向的,用户回复无处落地,Pushary 也无法自行启动新的 Cowork 任务。若会话中没有 Pushary 工具,说明连接器未启用,应告知用户一次:Pushary is not connected in this session. Enable it under Customize, Connectors, or set it up at https://pushary.com/docs/agents/guides/claude-desktop,然后继续任务。