Skip to content

Tool Surface

tool_surface 是某个上下文中可见的工具集合。它不是全局 catalog。

Surface 可以作用于 turntasksessiontenantskillpeer_agentworkspacerolemodel_request

Fields

字段含义
surface_idsurfaced set 的稳定 id。
scopesurface 适用的上下文。
tool_refs可被考虑的工具。
loaded_tools当前 schema 可见的工具。
deferred_tools可发现但未完整加载的工具。
blocked_tools带机器可读原因的隐藏工具。
excluded_tools因 role、recursion、feature、model 或 policy filters 被移除的工具。
selection_policy模型或 runtime 如何选择工具。
default_tool_choiceautononerequired 或工具特定 hint。
role_constraintsAgent type、coordinator mode、background worker 或 human role constraints。
model_capabilitiesprovider 对 strict schemas、parallel calls、deferred refs、media 等的支持。
policy_refs相邻 policy decisions 或 constraints。
runtime_refsruntime、session、task 或 sandbox refs。

当 policy、credentials、workspace、active skill、peer agent、model capability、feature gates 或 runtime mode 变化时,应重新生成 surface。

Filtering

Surface filters SHOULD 记录原因。例如:

  • subagents 内部阻止 recursive agent tool。
  • non-interactive mode 阻止 human-interaction tool。
  • write tool 被 permission mode 阻止。
  • MCP tool 延迟到被 discover 后再加载。
  • browser tool 因没有 browser session 被排除。
  • shell tool 被 sandbox 或 platform policy 排除。

Draft standard for portable agent tool declarations, runtime interfaces, invocations, progress, results, permissions, scheduling, and audit refs.