用途:通过 dws aisearch 在钉钉内做三类检索——人员、跨源内容、行为回溯。姓名/工号/部门/职位/职责/上下级等线索找人走 person;按主题跨文档、消息、邮件、日程、待办、听记等找内容走 enterprise;以当前用户为端点回溯发送、接收、创建、编辑、分享走 behavior。仅 IM 需逐条消息过滤时才配合 chat 的 +search-msg。
用法:命令均带 --format json。人员示例:dws aisearch person --query "<目标>" --dimension <维度> --format json;跨源示例:dws aisearch enterprise --queries "<主题>" --types <类型CSV> [--time-range "<原时间词>"] --format json;行为示例:dws aisearch behavior --queries "<主题>" --types <类型CSV> --behavior-type <all|send|receive|create|edit|share> --format json。时间词只进 --time-range,类型词只进 --types。完整手机号反查走 dws contact user search-mobile --mobile "<手机号>" --format json。
限制:空结果即结束本次搜索,失败或不完整不得表述为“对象不存在”或全量唯一;候选多时须列候选,不同 domain 的 ID 不可直接比较。requestConstraints、sources、coverage.status 等字段用于说明条件与覆盖范围,语义候选无文本证据时应标为未核实。Retryable 失败最多原样重试一次;未知 flag 才查对应命令 Help。仅需候选摘要或链接时不读原文,确需正文且有稳定 ID 时才按产品读取。