Skip to content

Drop the removed --tool envelope call form - #1

Merged
pDJJq merged 1 commit into
mainfrom
drop-tool-envelope-call-form
Aug 23, 2026
Merged

Drop the removed --tool envelope call form#1
pDJJq merged 1 commit into
mainfrom
drop-tool-envelope-call-form

Conversation

@pDJJq

@pDJJq pDJJq commented Aug 23, 2026

Copy link
Copy Markdown
Member

背景

上游 gateway 已把数据面调用彻底改为唯一直连形态:命令是节点下的虚拟叶子,cmds[].path 恒为完整命令路径,POST /<path> 的 body 即 arguments 本体(无 {tool,arguments} 信封)。tb call '<node>' --tool '<command>' 这种 envelope 形态已从 CLI 删除。

Skill 里仍在教已删除的 envelope 形态,agent 照着做会失败。本 PR 让 Skill 与当前运行时对齐。

改动

  • 删除 envelope 教学:SKILL.md 第 4 步与 cli-reference.md 的 "Invocation forms" 不再出现 --tool,也不再让 agent "从 node kind 选择调用形态";统一教一种直连形态,cmds[].path 逐字用作调用目标。
  • 术语对齐:<node>/<tool><node>/<command>、"tool-level help" → "command-level help"。重构后所有 kind 都用命令级 ~help,不再是 MCP/HTTP/tool 专属。
  • 补充大小写语义:路径标识符大小写不敏感、规范化为小写。

验收

  • npx --yes skills add . --list 仅发现 tool-bridge skill(仓库 CI 的 discovery 校验)。
  • 全文无 --tool / envelope / tool-level 残留。

The gateway now exposes a single direct call form: a command is a virtual
leaf under its node, so `cmds[].path` is always the full command path and
the request body is the arguments object. The `tb call '<node>' --tool
'<command>'` envelope form no longer exists.

- SKILL.md / cli-reference.md: remove the envelope examples and the
  "choose the form" guidance; teach the one direct form.
- Rename "tool-level help" to "command-level help" and `<node>/<tool>`
  to `<node>/<command>` throughout, matching the runtime where every
  kind resolves command-level `~help`.
- Note that path identifiers are case-insensitive and normalized to
  lowercase.

Discovery still passes: `npx --yes skills add . --list` finds only the
`tool-bridge` skill.
@pDJJq
pDJJq merged commit 72b61ff into main Aug 23, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant