Files
myWiki/concepts/tool-workspace-binding.md

43 lines
1.7 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: "工具-工作区绑定Tool-Workspace Binding"
created: 2026-07-03
updated: 2026-07-03
type: concept
tags: ["agent", "tool", "workspace", "security"]
sources: ["https://mp.weixin.qq.com/s/iiTmgbtrYHMMjQ7dn7CDrg"]
---
# 工具-工作区绑定
> 工具不是越多越好,关键是当前可见。
## 核心定义
**工具-工作区绑定** 是 [[workspace-first-architecture|Workspace-first 架构]] 在工具层的核心实践:将工具挂在工作区上,模型进入哪个工作区就只看到当前工作区的工具,而非全局暴露。
## 设计逻辑
每个 tool schema 都会增加模型要理解的动作空间。工具越多,模型越容易在无关能力之间摇摆。更重要的是,工具越多,权限面也越宽,审计和安全成本会变高。
## 工作区工具分配示例
| 工作区 | 暴露工具 |
|--------|---------|
| Main Workspace | 调度、读取历史、召回记忆、任务管理、最终交付 |
| CLI Workspace | 文件读写、代码搜索、命令执行、测试 |
| Web Search Workspace | 网页搜索、网页读取、引用整理 |
| 财务 Workspace | 报销、预算、审批相关工具 |
## 收益
1. **tool schema 成本下降**:每轮只需加载少量工具的 schema
2. **误调用概率降低**:查资料时不会看到文件删除和 shell 命令
3. **权限审计简化**:每个工作区的工具面独立审计
4. **安全边界清晰**[[agent-boundary-design|边界设计]] 中的工具边界有了具体载体
## 参考
- [[zleap-workspace-harness-2026|Zleap-Agent Harness 设计]]
- [[workspace-first-architecture|Workspace-first 架构]]
- [[agent-boundary-design|Agent 边界设计]]