Files
dify/api/tests
Yansong ZhangandClaude Fable 5 dba054ce7e feat(api): cli_tool mentions use stable ids + [§tool:<provider>/*§] provider-wide reference — ENG-616
Review feedback (weiqiang, Slash-menu 接入参考):
- AgentCliToolConfig gains a stable id; [§cli_tool:<id>§] resolves by id
  (name kept as alias for pre-id tokens), composer save backfills missing
  ids, duplicate ids rejected at validate/save.
- tool kind reserves the "/*" id suffix: a provider groups many concrete
  tools (like an MCP server), so [§tool:<provider>/*§] references the whole
  group while <provider>/<tool_name> stays the single-tool form. The prefix
  accepts the same provider/provider_id/plugin_id aliases; it resolves
  against configured tools.dify_tools (unconfigured provider dangles like
  any other mention).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-06-11 15:32:53 +08:00
..