Instance-detail queries bring sensitive approval data into the agent session
Source references: 6Instance details include initiator and department identifiers, full forms, current nodes, approver tasks, comments, and operation history; task lists also include names and form summaries. These commonly contain expense, leave, HR, or procurement information.
Broad queries or displaying, logging, or forwarding raw results could expose personal information, financial material, leave reasons, and internal decision records to people or systems that do not need them.
Instance details do include identifiers, form data, nodes, tasks, comments, and history, but this is a user-scoped read operation matching the stated purpose of viewing an approval. The main workflow says to fetch details only when the user explicitly asks for the form, node, or progress, avoiding default collection. No instruction shown sends this data to another third party or broadens access. For sensitive HR or financial approvals, users can request only the task list or ask that unnecessary fields be omitted.
This assessment concerns the code and conditions shown, not proof that harm has occurred.需要的 scopes: ["approval:instance:read"]Show 5 other places
| `definition_name` | 审批名称 || `user_id` | 发起审批的用户 ID || `department_id` | 发起人所在部门 ID || `status` | 审批实例状态,见下方“status 枚举” || `reverted` | 单据是否已被撤销 || `start_time` | 审批创建时间 || `end_time` | 审批完成时间,未完成时通常为 `0` || `form` | 表单数据,JSON 字符串 || `current_nodes` | 当前审批节点列表 || `tasks` | 审批任务列表 || `operation_records` | 审批动态,例如通过、拒绝、转交、加签、回退、撤回、抄送 || `comments` | 评论列表 |需要的 scopes: ["approval:task:read"]| `tasks[].definition_code` | 审批定义 Code || `tasks[].definition_name` | 审批定义名称 || `tasks[].initiator` | 发起人 ID || `tasks[].initiator_name` | 发起人姓名 || `tasks[].summaries` | 表单摘要字段列表 || `tasks[].support_api_operate` | 是否支持通过 API 同意或拒绝该任务 |获取单个审批实例详情(用户级只读操作)。适合在执行 approve / reject / transfer / rollback / cancel / cc / remind 之前,先查看审批表单、当前节点、任务列表、审批动态和整体状态。需要的 scopes: ["approval:instance:read"]- 目标只是处理待办时,优先 `tasks query` 获取 `instance_code` + `task_id`- **只有**用户明确要看详情、当前节点、表单内容、流程进度时,才调用 `instances get`- 用户已经明确给出 `instance_code` / `task_id` 时,不要先查列表再过滤